.advk {
	--advk-night: #14213a;
	--advk-wax: #a8322d;
	--advk-gold: #e9b44c;
	--advk-paper: #f6efe2;
	--advk-spruce: #1f4d3f;
	max-width: 960px;
	margin: 2rem auto;
	padding: 1.5rem;
	background: var(--advk-night);
	border-radius: 6px;
	color: var(--advk-paper);
	font-family: Georgia, "Times New Roman", serif;
}
.advk-headline { margin: 0 0 1.25rem; color: var(--advk-gold); text-align: center; font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: .01em; }
.advk-preview-note { margin: 0 0 1rem; text-align: center; font-size: .9rem; opacity: .8; }
.advk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
@media (min-width: 720px) { .advk-grid { grid-template-columns: repeat(6, 1fr); } }
.advk-cell { margin: 0; padding: 0; }
.advk-door {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 2px solid transparent; border-radius: 3px;
	font: inherit; cursor: pointer; overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}
.advk-door.is-unlocked { background: var(--advk-wax); color: var(--advk-paper); border-color: var(--advk-gold); box-shadow: 0 0 14px rgba(233, 180, 76, .35); }
.advk-door.is-unlocked:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(233, 180, 76, .6); }
.advk-door.is-locked { background: var(--advk-spruce); color: rgba(246, 239, 226, .55); border-color: rgba(246, 239, 226, .12); }
.advk-door.is-seen { background: #5b2a2a; box-shadow: none; }
.advk-door.is-seen::after { content: "★"; position: absolute; bottom: 6px; right: 8px; color: var(--advk-gold); font-size: .9rem; }
.advk-number { font-size: clamp(1.5rem, 4.5vw, 2.4rem); font-style: italic; }
.advk-door:focus-visible { outline: 3px solid var(--advk-gold); outline-offset: 2px; }
.advk-door.is-shaking { animation: advk-shake .4s; }
@keyframes advk-shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.advk-hint { min-height: 1.5em; margin: 1rem 0 0; text-align: center; color: var(--advk-gold); }

/* Dialog */
.advk-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(8, 12, 24, .85); }
.advk-overlay[hidden] { display: none; }
.advk-dialog { position: relative; width: 100%; max-width: 820px; max-height: 92vh; overflow: auto; padding: 1.5rem; background: var(--advk-paper, #f6efe2); color: #1b1b1b; border-top: 6px solid #a8322d; border-radius: 4px; font-family: Georgia, "Times New Roman", serif; animation: advk-open .25s ease-out; }
@keyframes advk-open { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.advk-close { position: absolute; top: .5rem; right: .75rem; width: 2.5rem; height: 2.5rem; border: 0; background: transparent; color: #1b1b1b; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.advk-close:focus-visible { outline: 3px solid #a8322d; }
.advk-dialog .advk-title { margin: 0 2.5rem 1rem 0; font-size: 1.6rem; font-weight: 400; }
.advk-media video { display: block; width: 100%; height: auto; max-height: 65vh; background: #000; }
.advk-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.advk-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.advk-dialog .advk-text { margin: 1rem 0 0; line-height: 1.6; max-width: 70ch; }
.advk-dialog .advk-empty { font-style: italic; }
@media (prefers-reduced-motion: reduce) { .advk-door, .advk-dialog { animation: none; transition: none; } }
