/* Diemakora — game page */
.dk-play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 14px; }
.dk-play-main { min-width: 0; }
.dk-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dk-stage-frame { position: relative; aspect-ratio: 16 / 9; background: #000; max-height: 78vh; }
.dk-stage-cover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; background: linear-gradient(rgba(11,15,26,.72), rgba(11,15,26,.92)), var(--img) center/cover; }
.dk-stage-thumb { width: 180px; height: 108px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.dk-stage-title { font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0; letter-spacing: -.02em; }
.dk-play-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); border: 0; padding: 14px 30px; font-size: 1.1rem; font-weight: 800; border-radius: 999px; cursor: pointer; box-shadow: 0 8px 28px rgba(199,244,100,.3); transition: transform .12s ease; }
.dk-play-btn:hover { transform: scale(1.04); }
.dk-stage-hint { color: var(--text-2); font-size: .85rem; margin: 0; }
.dk-stage-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--text-2); background: var(--bg); z-index: 2; }
.dk-stage-loading[hidden] { display: none; }
.dk-spinner { width: 22px; height: 22px; border: 3px solid var(--surface-2); border-top-color: var(--accent); border-radius: 50%; animation: dk-spin .8s linear infinite; }
@keyframes dk-spin { to { transform: rotate(360deg); } }
.dk-game-box { position: absolute; inset: 0; z-index: 1; }
.dk-game-box:empty { pointer-events: none; }
.dk-game-box iframe { width: 100%; height: 100%; border: 0; display: block; }
#adsContainer { position: absolute; inset: 0; background: #000; z-index: 3; }
#adsContainer[hidden] { display: none; }
#adContainer { position: absolute; inset: 0; }
#videoElement { width: 100%; height: 100%; }
.dk-stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
.dk-stage-bar-left, .dk-stage-bar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dk-stat { color: var(--text-2); font-size: .9rem; }
.dk-stat b { color: var(--text); }
.dk-vote, .dk-icon-btn { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); padding: 7px 12px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.dk-vote:hover, .dk-icon-btn:hover { border-color: var(--accent); }
.dk-vote.is-done { opacity: .55; pointer-events: none; }
.dk-icon-btn { padding: 7px 11px; }
.dk-stage:fullscreen { background: #000; }
.dk-stage:fullscreen .dk-stage-frame { aspect-ratio: auto; height: 100vh; max-height: none; }
.dk-stage:fullscreen .dk-stage-bar { display: none; }
body.dk-game-mobile-full .dk-stage { position: fixed; inset: 0; z-index: 200; border-radius: 0; }
body.dk-game-mobile-full .dk-stage-frame { aspect-ratio: auto; height: 100dvh; max-height: none; }
body.dk-game-mobile-full .dk-stage-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); }
body.dk-game-mobile-full { overflow: hidden; }
.dk-exit-full { position: fixed; top: 10px; right: 10px; z-index: 210; display: none; }
body.dk-game-mobile-full .dk-exit-full { display: inline-flex; }

.dk-game-article { margin-top: 22px; }
.dk-game-article .dk-lead { font-size: 1.08rem; color: var(--text); }
.dk-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.dk-jump a { font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); text-decoration: none; }
.dk-jump a:hover { border-color: var(--accent); color: var(--text); }
.dk-game-article section { scroll-margin-top: 90px; }
.dk-game-article h2 a { text-decoration: none; }
.dk-controls td:first-child { width: 34%; }
.dk-play-side { display: flex; flex-direction: column; gap: 16px; }
.dk-side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.dk-side-box h3 { margin: 0 0 10px; font-size: 1rem; }
.dk-side-list { display: flex; flex-direction: column; gap: 8px; }
.dk-side-item { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; border-radius: 10px; padding: 4px; }
.dk-side-item:hover { background: var(--surface-2); }
.dk-side-item img { width: 80px; height: 48px; object-fit: cover; border-radius: 8px; }
.dk-side-item strong { display: block; font-size: .9rem; line-height: 1.25; }
.dk-side-item small { color: var(--text-3); font-size: .78rem; }

/* modal */
.dk-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(0,0,0,.65); padding: 16px; }
.dk-modal[hidden] { display: none; }
.dk-modal-box { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; width: min(520px, 100%); position: relative; max-height: 90vh; overflow: auto; }
.dk-modal-box h3 { margin: 0 0 14px; }
.dk-modal form { display: flex; flex-direction: column; gap: 12px; }
.dk-modal-close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0; color: var(--text-2); font-size: 1.1rem; cursor: pointer; }
.dk-form-status { margin: 0; font-size: .9rem; color: var(--text-2); }
.dk-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--accent); color: var(--accent-ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; transition: .25s; z-index: 400; }
.dk-toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 960px) { .dk-play-layout { grid-template-columns: 1fr; } .dk-play-side { order: 3; } }
@media (max-width: 600px) { .dk-stage-frame { aspect-ratio: 4 / 3; } .dk-stage-thumb { width: 130px; height: 78px; } .dk-play-btn { padding: 12px 24px; } }
