/* Gratis Krydsord – spiller */
.gk-puzzle {
	--gk-ink: #1c1b1a;
	--gk-line: #1c1b1a;
	--gk-paper: #fff;
	--gk-hl: #fdf0c4;
	--gk-cur: #f5c84c;
	--gk-accent: #c8102e;
	--gk-ok: #1f7a4a;
	--gk-muted: #6b6760;
	font-family: inherit;
	color: var(--gk-ink);
	margin: 0 0 2rem;
}
.gk-top {
	display: flex; gap: 1rem; align-items: center;
	position: sticky; top: 0; z-index: 5;
	background: var(--gk-ink); color: #fff;
	padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem;
}
.gk-cluebar { flex: 1; font-size: 1.05rem; line-height: 1.35; min-height: 1.4em; }
.gk-cluebar b { color: var(--gk-cur); margin-right: .35rem; text-transform: uppercase; font-size: .8em; letter-spacing: .05em; }
.gk-time { font-variant-numeric: tabular-nums; font-weight: 600; opacity: .85; }
.gk-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr); gap: 1.75rem; align-items: start; }
@media (max-width: 820px) { .gk-main { grid-template-columns: 1fr; } }

.gk-grid {
	display: grid; gap: 0; width: 100%;
	border: 3px solid var(--gk-line); background: var(--gk-line);
	user-select: none;
}
.gk-cell { position: relative; aspect-ratio: 1 / 1; background: var(--gk-paper); outline: 1px solid var(--gk-line); }
.gk-block { background: var(--gk-line); }
.gk-cell input {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border: 0; margin: 0; padding: 12% 0 0; background: transparent;
	text-align: center; text-transform: uppercase; font: inherit;
	font-size: clamp(14px, 4.2vw, 26px); font-weight: 700; color: var(--gk-ink);
	caret-color: transparent; cursor: pointer; border-radius: 0;
}
.gk-cell input:focus { outline: none; }
.gk-num { position: absolute; top: 2px; left: 3px; font-size: clamp(8px, 1.5vw, 11px); line-height: 1; color: var(--gk-muted); pointer-events: none; z-index: 1; }
.gk-hl { background: var(--gk-hl); }
.gk-cur { background: var(--gk-cur); }
.gk-wrong input { color: var(--gk-accent); }
.gk-wrong::after { content: ""; position: absolute; right: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gk-accent); }
.gk-revealed input { color: #2856a3; }
.gk-solved .gk-grid { border-color: var(--gk-ok); }

.gk-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.gk-btn {
	font: inherit; font-size: .9rem; cursor: pointer;
	padding: .5rem .85rem; border-radius: 999px;
	border: 1.5px solid var(--gk-ink); background: #fff; color: var(--gk-ink);
}
.gk-btn:hover { background: var(--gk-ink); color: #fff; }
.gk-msg { margin-top: .8rem; min-height: 1.4em; font-weight: 600; }
.gk-msg.gk-ok { color: var(--gk-ok); }
.gk-msg.gk-bad { color: var(--gk-accent); }

.gk-lists { display: grid; gap: 1.25rem; }
.gk-list h3 { margin: 0 0 .4rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--gk-ink); padding-bottom: .3rem; }
.gk-list ol { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.gk-list li { display: flex; gap: .55rem; padding: .4rem .5rem; border-radius: 6px; cursor: pointer; line-height: 1.35; }
.gk-list li b { min-width: 1.6em; }
.gk-list li em { color: var(--gk-muted); font-style: normal; white-space: nowrap; }
.gk-list li:hover { background: #f3f1ec; }
.gk-list li.gk-active { background: var(--gk-hl); }

/* Oversigtskort */
.gk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.25rem; }
.gk-card { display: flex; flex-direction: column; gap: .45rem; padding: 1rem; border: 1.5px solid #1c1b1a; border-radius: 12px; text-decoration: none; color: inherit; background: #fff; transition: transform .15s, box-shadow .15s; }
.gk-card:hover { transform: translateY(-3px); box-shadow: 4px 6px 0 #1c1b1a; }
.gk-card-title { font-weight: 700; line-height: 1.25; }
.gk-card-meta { font-size: .85rem; color: #6b6760; }
.gk-mini { display: grid; gap: 1px; background: #1c1b1a; border: 2px solid #1c1b1a; aspect-ratio: 1 / 1; margin-bottom: .4rem; }
.gk-mini i { background: #fff; }
.gk-mini i.b { background: #1c1b1a; }

@media print {
	.gk-top, .gk-tools, .gk-msg { display: none !important; }
	.gk-main { grid-template-columns: 1fr 1fr; }
	.gk-hl, .gk-cur { background: #fff !important; }
	.gk-list ol { max-height: none; }
	.gk-cell input { color: transparent; }
}
.gk-msg.gk-ask { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.gk-yes { background: var(--gk-ink); color: #fff; }

.gk-share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .7rem; padding: .7rem .8rem; background: #fdf0c4; border-radius: 10px; }
.gk-share-t { font-weight: 700; margin-right: .3rem; }
.gk-share a.gk-btn { text-decoration: none; display: inline-flex; align-items: center; }
@media print { .gk-share, .gk-acct { display: none !important; } }
.gk-share-mail { margin-left: auto; font-weight: 700; }
