:root {
  --bg: #333333;
  --card: #ffffff;
  --stroke: #dbe4ef;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  --point-size: 12px;
  --label-radius: 14px;
  --label-font-size: 15px;
  --label-scale: 1;
  --label-scale-small-factor: 1;
  --label-scale-auto-factor: 1;
  --label-bg: #ffffff;
  --label-text: #0f172a;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { padding: 12px; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); }
button, input, textarea { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.page { display: flex; justify-content: center; }
.game-card { width: min(1240px, 100%); display: grid; gap: 12px; padding: 14px; border-radius: 24px; background: var(--card); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow); }
.game-header, .label-zone, .result-zone, .game-media-footer { border-radius: 18px; border: 1px solid var(--stroke); background: linear-gradient(180deg, #ffffff, #f8fafc); } .game-header { background: #333333; border-color: #333333; }
.game-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 14px 16px; }
.game-header h1 { margin: 0; font-size: clamp(1.34rem, 1.7vw, 1.9rem); line-height: 1.05; letter-spacing: -.03em; color: #f5d06f; }
.game-header p { margin: 6px 0 0; color: #ffffff; font-size: .94rem; line-height: 1.45; }
.game-header-meta { display: grid; justify-items: end; align-self: start; }
.timer-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 999px; border: 1px solid #cbd5e1; background: linear-gradient(180deg, #ffffff, #f8fafc); color: var(--text); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08); }
.timer-chip-label { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.timer-chip strong { font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer-chip.is-warning { border-color: rgba(245, 158, 11, .45); background: linear-gradient(180deg, #fffbeb, #fef3c7); color: #92400e; }
.timer-chip.is-danger { border-color: rgba(239, 68, 68, .45); background: linear-gradient(180deg, #fff1f2, #ffe4e6); color: #9f1239; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: stretch; }
.media-column, .side-stack { display: grid; gap: 12px; min-width: 0; } .side-stack { grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.image-zone { display: flex; justify-content: center; padding: 12px; border-radius: 18px; border: 1px solid var(--stroke); background: linear-gradient(180deg, #f8fafc, #eef2ff); }
.stage { position: relative; width: min(100%, 900px); overflow: hidden; user-select: none; }
.stage img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14); transition: filter .22s ease; }
.stage.is-finished img { filter: brightness(.72) saturate(.9); }
.image-source-credit { position: absolute; inset: auto auto 12px 12px; z-index: 12; display: inline-flex; align-items: center; max-width: calc(100% - 24px); padding: 4px 9px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 11px; line-height: 1.2; letter-spacing: .01em; box-shadow: 0 6px 16px rgba(15, 23, 42, .24); backdrop-filter: blur(4px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.point-layer { position: absolute; inset: 0; touch-action: none; }
.point { position: absolute; width: var(--point-size); height: var(--point-size); margin: 0; padding: 0; border: 2px solid var(--primary); border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.95), 0 2px 8px rgba(15, 23, 42, .14); transform: translate(-50%, -50%); z-index: 3; }
.point.pending { background: color-mix(in srgb, var(--primary) 14%, #ffffff); }
.point.has-label { background: color-mix(in srgb, var(--primary) 88%, #ffffff); }
.point.snap-candidate { box-shadow: 0 0 0 4px rgba(37, 99, 235, .18), 0 0 0 2px rgba(255,255,255,.96); }
.point.point-pulse::after { content: ''; position: absolute; inset: -7px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--primary) 56%, transparent); animation: point-pulse 1.7s ease-out infinite; }
@keyframes point-pulse { 0% { transform: scale(.72); opacity: .65; } 100% { transform: scale(1.52); opacity: 0; } }
.label-zone { display: flex; flex-direction: column; min-height: 0; padding: 12px; background: linear-gradient(180deg, #f8fafc, #f1f5f9); }
.label-zone-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.label-zone-header h2 { margin: 0; font-size: 1.04rem; }
.label-zone-header p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.remaining-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; font-size: .84rem; background: #f1f5f9; font-weight: 800; white-space: nowrap; }
.label-pool { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1 1 auto; overflow: auto; padding-right: 4px; }
.placeholder-note { color: var(--muted); font-size: .94rem; line-height: 1.45; }
.label-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: calc(42px * var(--label-scale) * var(--label-scale-small-factor)); width: 100%; padding: calc(10px * var(--label-scale) * var(--label-scale-small-factor)) calc(12px * var(--label-scale) * var(--label-scale-small-factor)); border: 1px solid rgba(148,163,184,.26); border-radius: var(--label-radius); background: var(--label-bg); color: var(--label-text); font-size: var(--label-font-size); font-weight: 700; text-align: center; cursor: grab; touch-action: none; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08); }
.placed-label { position: absolute; left: 0; top: 0; z-index: 4; width: auto; max-width: min(34ch, calc(100% - 16px)); cursor: grab; }
.label-link { position: absolute; height: 3px; transform-origin: 0 50%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 96%, white 4%), color-mix(in srgb, var(--primary) 70%, white 30%)); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 2px 10px rgba(15, 23, 42, 0.24); z-index: 2; pointer-events: none; opacity: .98; }
.label-link::before, .label-link::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--primary); box-shadow: 0 0 0 2px rgba(255,255,255,.95); }
.label-link::before { left: 0; }
.label-link::after { left: 100%; }
.label-chip.correct { border: 2px solid #22c55e; background: linear-gradient(180deg, #dcfce7, #bbf7d0); color: #14532d; box-shadow: 0 12px 22px rgba(21, 128, 61, 0.18); }
.label-chip.incorrect { border: 2px solid #ef4444; background: linear-gradient(180deg, #ffe4e6, #fecaca); color: #7f1d1d; box-shadow: 0 12px 22px rgba(185, 28, 28, 0.16); }
.label-chip:disabled { opacity: 1; cursor: default; }
.label-chip.drag-origin { visibility: hidden; }
.drag-ghost { position: fixed; top: 0; left: 0; z-index: 10050; pointer-events: none; opacity: .96; transform: none; box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22); }
.drag-ghost.snap-preview { opacity: 1; box-shadow: 0 18px 34px rgba(15, 23, 42, 0.26), 0 0 0 2px rgba(255,255,255,.88); }
.result-zone { padding: 12px; display: grid; gap: 12px; }
.result-box { min-height: 164px; border-radius: 18px; border: 1px solid #dbeafe; background: linear-gradient(180deg, #f8fbff, #eef6ff); padding: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.92); }
.result-box.is-success { border-color: #bbf7d0; background: #f0fdf4; }
.result-box.is-warning { border-color: #fed7aa; background: #fff7ed; }
.result-box.is-timeout { border-color: #cbd5e1; background: #f8fafc; }
.result-empty { color: var(--muted); line-height: 1.45; }
.result-panel { position: relative; display: grid; gap: 10px; }
.result-kicker { font-size: .76rem; line-height: 1; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.result-score { font-size: clamp(2.8rem, 5vw, 4rem); line-height: .95; font-weight: 900; letter-spacing: -.05em; }
.result-score span { font-size: .48em; margin-left: .12em; }
.result-heading { font-size: 1.18rem; font-weight: 900; }
.result-feedback { margin: 0; color: var(--muted); line-height: 1.45; }
.result-badge { display: inline-flex; align-items: center; justify-self: start; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: .88rem; font-weight: 800; border: 1px solid rgba(148,163,184,.34); background: rgba(255,255,255,.92); }
.result-badge--gold { color: #854d0e; border-color: rgba(245,158,11,.34); background: linear-gradient(180deg, #fef3c7, #fde68a); }
.result-badge--silver { color: #334155; border-color: rgba(148,163,184,.34); background: linear-gradient(180deg, #f8fafc, #e2e8f0); }
.result-badge--bronze { color: #9a3412; border-color: rgba(251,146,60,.34); background: linear-gradient(180deg, #ffedd5, #fed7aa); }
.result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.result-stat { min-width: 0; display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(148,163,184,.24); background: rgba(255,255,255,.86); }
.result-stat strong { font-size: 1.2rem; line-height: 1; }
.result-stat-label { font-size: .76rem; line-height: 1.2; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-stat--good { color: #14532d; border-color: rgba(34,197,94,.32); background: linear-gradient(180deg, #dcfce7, #bbf7d0); }
.result-stat--wrong { color: #991b1b; border-color: rgba(239,68,68,.28); background: linear-gradient(180deg, #fee2e2, #fecaca); }
.result-stat--time { color: #334155; border-color: rgba(148,163,184,.24); background: linear-gradient(180deg, #f8fafc, #e2e8f0); }
.result-selected-message { font-weight: 800; }
.result-note { color: var(--muted); }
.result-confetti { pointer-events: none; position: absolute; inset: -6px 0 auto 0; height: 18px; }
.result-confetti span { position: absolute; top: 0; width: 9px; height: 14px; border-radius: 999px; opacity: .82; animation: result-confetti-drop 1.8s ease-out infinite; }
.result-confetti span:nth-child(1) { left: 8%; background: #f59e0b; animation-delay: 0s; }
.result-confetti span:nth-child(2) { left: 22%; background: #22c55e; animation-delay: .15s; }
.result-confetti span:nth-child(3) { left: 39%; background: #3b82f6; animation-delay: .3s; }
.result-confetti span:nth-child(4) { left: 57%; background: #ef4444; animation-delay: .45s; }
.result-confetti span:nth-child(5) { left: 73%; background: #a855f7; animation-delay: .6s; }
.result-confetti span:nth-child(6) { left: 88%; background: #14b8a6; animation-delay: .75s; }
@keyframes result-confetti-drop { 0% { transform: translateY(-8px) rotate(0deg); opacity: 0; } 18% { opacity: .88; } 100% { transform: translateY(26px) rotate(120deg); opacity: 0; } }
.game-media-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 12px 14px; }
.game-maker-cta, .game-credit { margin: 0; color: var(--muted); line-height: 1.45; font-size: .92rem; } .game-credit { justify-self: end; text-align: right; width: 100%; }
.game-maker-cta a, .game-credit a { color: var(--text); text-decoration: none; font-weight: 700; }
.game-credit .brand-link:hover { color: #9eb721; text-decoration: none; }
.game-maker-cta a:hover { text-decoration: underline; }
.share-cluster { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.share-strip-label { font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button, .share-action { border: 0; border-radius: 999px; min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease, color .14s ease; }
.button:hover, .share-action:hover { transform: translateY(-1px); }
.button:active, .share-action:active { transform: translateY(0); }
.button.button-accent, .share-action--primary { color: #ffffff; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 88%, white 12%), var(--primary)); box-shadow: 0 10px 20px rgba(37, 99, 235, .24); }
.share-action { color: var(--text); background: #f8fafc; border: 1px solid rgba(148,163,184,.24); box-shadow: 0 8px 18px rgba(15, 23, 42, .08); }
.share-action--icon { width: 42px; min-width: 42px; padding: 0; border-radius: 999px; }
.share-action--icon .share-icon { width: 18px; height: 18px; display: block; fill: currentColor; }
.share-action--icon:hover { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 22%, rgba(148,163,184,.24)); background: color-mix(in srgb, var(--primary) 8%, #f8fafc); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand-lockup { display: inline-flex; align-items: center; gap: 8px; } .game-credit .brand-lockup { width: 100%; justify-content: flex-end; }
.brand-mark-link { display: inline-flex; align-items: center; line-height: 0; }
.brand-mark { display: inline-block; width: 44.8px; height: 44.8px; object-fit: contain; vertical-align: middle; filter: drop-shadow(0 2px 6px rgba(15, 23, 42, .2)); }
.reset-inline { justify-self: start; }
@media (max-height: 860px) and (min-width: 981px) { body { padding: 8px; } .game-card { gap: 8px; padding: 10px; border-radius: 18px; } .game-header { gap: 8px 10px; padding: 10px 12px; } .game-header h1 { font-size: clamp(1.15rem, 1.45vw, 1.5rem); } .game-header p { margin-top: 4px; font-size: .84rem; } .game-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 8px; } .media-column, .side-stack { gap: 8px; } .image-zone, .label-zone, .result-zone, .game-media-footer { padding: 8px; border-radius: 14px; } .result-box { min-height: 124px; padding: 12px; } .label-pool { min-height: 0; flex: 1 1 auto; overflow: auto; padding-right: 4px; } .stage { width: min(100%, 700px); } }
@media (max-width: 1180px) and (min-width: 721px) { body { padding: 10px; } .game-card { gap: 10px; padding: 12px; border-radius: 20px; } .game-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 10px; } .stage { width: min(100%, 780px); } .label-pool { min-height: 0; flex: 1 1 auto; overflow: auto; padding-right: 4px; } .button, .share-action { min-height: 44px; } }
@media (max-width: 1100px) { .game-layout { grid-template-columns: 1fr; } }
@media (max-width: 1100px) and (min-width: 721px) { .side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
@media (max-width: 720px) { body { padding: 8px; } .game-card { padding: 10px; border-radius: 18px; } .game-header { grid-template-columns: 1fr; } .game-media-footer { flex-direction: column; align-items: stretch; } .share-cluster { justify-content: flex-start; } }
@media (max-width: 560px) { :root { --label-scale-small-factor: var(--label-scale-auto-factor); } body { padding: 6px; } .game-card { gap: 8px; padding: 8px; border-radius: 14px; } .game-header, .label-zone, .result-zone, .game-media-footer { border-radius: 12px; } .game-header { gap: 8px; padding: 10px; } .game-header h1 { font-size: clamp(1.02rem, 5vw, 1.26rem); } .game-header p { margin-top: 4px; font-size: .82rem; line-height: 1.35; } .image-zone, .label-zone, .result-zone, .game-media-footer { padding: 8px; } .label-pool { min-height: 0; max-height: 30vh; overflow: auto; padding-right: 4px; } .label-chip { min-height: calc(36px * var(--label-scale) * var(--label-scale-small-factor)); padding: calc(8px * var(--label-scale) * var(--label-scale-small-factor)) calc(10px * var(--label-scale) * var(--label-scale-small-factor)); } .result-box { min-height: 108px; padding: 10px; } .result-score { font-size: clamp(2rem, 15vw, 2.8rem); } .button, .share-action { min-height: 38px; padding: 0 12px; font-size: .84rem; } .share-action--icon { width: 38px; min-width: 38px; } }

.game-layout{align-items:start !important;}.media-column{align-self:start !important;align-content:start !important;}.image-zone{align-self:start !important;align-items:flex-start !important;height:fit-content !important;}.stage{align-self:flex-start !important;height:auto !important;}.image-source-credit{position:absolute !important;left:12px !important;bottom:12px !important;z-index:20 !important;max-width:calc(100% - 24px) !important;}.point{z-index:8 !important;border-color:var(--point-color,var(--primary)) !important;}.point.pending{background:#fff !important;border-color:var(--pending-point-color,var(--point-color,var(--primary))) !important;box-shadow:0 0 0 3px rgba(255,255,255,.96),0 0 0 8px color-mix(in srgb,var(--pending-point-color,var(--point-color,var(--primary))) 22%,transparent),0 10px 22px rgba(15,23,42,.2) !important;}.point.pending.point-pulse::after{border-color:color-mix(in srgb,var(--pending-point-color,var(--point-color,var(--primary))) 56%,transparent) !important;}.point.has-label{background:var(--label-bg) !important;border-color:var(--point-color,var(--primary)) !important;}.placed-label{z-index:6 !important;}.label-link{z-index:4 !important;}.result-badge--plastic{color:#334155 !important;border-color:rgba(148,163,184,.38) !important;background:linear-gradient(180deg,#f1f5f9,#cbd5e1) !important;}.result-no-badge{display:inline-flex;align-items:center;justify-self:start;min-height:34px;padding:0 12px;border-radius:999px;font-size:.88rem;font-weight:800;border:1px dashed rgba(148,163,184,.42);background:rgba(255,255,255,.9);color:#475569 !important;}