.daily-page { --text:#3B2A1F; --muted:#7C6A5A; background:#E7EDDD; }
.daily-page .site-header { background:#f9f7edee; }
.daily-shell { max-width:1020px; padding-top:36px; padding-bottom:64px; }
.daily-heading { text-align:center; margin-bottom:30px; }
.daily-heading .eyebrow { margin-bottom:12px; background:#fff8ed; }
.daily-heading h1 { font-size:clamp(32px,5vw,48px); line-height:1.25; }
.daily-heading p { color:var(--muted); margin:12px 0; }
.daily-layout { display:grid; grid-template-columns:minmax(0,560px) minmax(230px,1fr); gap:32px; align-items:start; }
.play-panel { background:#fff8ed; padding:24px; border:1px solid #d6d5be; border-radius:24px; box-shadow:0 10px 30px #3b2a1f0b; min-width:0; }
.board-meta,.board-status,.tools { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.board-meta { font-size:13px; color:var(--muted); margin-bottom:14px; }
.board-status { margin-bottom:14px; font-weight:600; }
#hearts { color:#a63e47; letter-spacing:3px; }
/* The app's board (BOARD-STYLE-1107): rounded cells with cream gaps on an ivory board, no grid lines.
   Sizes are the app's 1080-wide board ratios (board 1021 = edge 8 + padding 10 + cells 985 + 10 + 8, corner 32);
   cell gap and corner per board size come from daily.mjs as --cell-gap / --cell-radius. */
#board { display:grid; width:100%; aspect-ratio:1; padding:1.763%; background:#FFF8ED; border-radius:3.134%; box-shadow:0 0 0 1px #e6dcc8; touch-action:none; user-select:none; transition:box-shadow .15s; }
#board.candidate-mode { box-shadow:inset 0 0 0 4px #E0A93A; }
.cell { container-type:inline-size; position:relative; border:0; margin:var(--cell-gap,4%); border-radius:var(--cell-radius,16%); padding:0; min-width:0; min-height:0; display:grid; place-items:center; color:#3B2A1F; font:500 clamp(16px,4vw,30px)/1 Inter,sans-serif; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.cell img { position:absolute; inset:5%; width:90%; height:90%; object-fit:contain; pointer-events:none; }
#board.large .cell img { inset:7%; width:86%; height:86%; }
/* ✕ and ? are the app's sprites used as masks, so they take the cell's text color. ✕ = 60% of the cell, ? = 72%. */
.cell-mark { position:absolute; inset:20%; font-size:0; pointer-events:none; background:currentColor; mask:url('/assets/games/goseumdoku/daily/cross.png') center/contain no-repeat; -webkit-mask:url('/assets/games/goseumdoku/daily/cross.png') center/contain no-repeat; }
.cell[data-display=""] > .cell-mark { display:none; }
.cell[data-display="?"] > .cell-mark { inset:14%; mask-image:url('/assets/games/goseumdoku/daily/candidate.png'); -webkit-mask-image:url('/assets/games/goseumdoku/daily/candidate.png'); }
.cell.auto > .cell-mark { opacity:.4; }
.cell.wrong { color:#E57373; }
.cell.candidate { color:#4F4640; }
.cell:focus-visible { outline:3px solid #3b2a1f; outline-offset:-3px; z-index:1; }
/* Original Pattern0–14 masks: ink tint, 16% opacity, below marks and hedgehogs. */
.show-patterns .cell::before,
.cell.hint-focus::before { content:""; position:absolute; inset:0; border-radius:inherit; background:#3B2A1F; opacity:.16; mask-image:var(--region-pattern); mask-repeat:repeat; mask-size:22px 22px; -webkit-mask-image:var(--region-pattern); -webkit-mask-repeat:repeat; -webkit-mask-size:22px 22px; pointer-events:none; }
.cell > span,.cell > img { z-index:1; }
.tools { justify-content:center; margin-top:16px; gap:8px; }
.daily-page button { font-family:inherit; }
.tool { background:#fff8ed; border:1px solid #c9bfa8; border-radius:12px; padding:10px 13px; min-height:44px; color:#3b2a1f; font-weight:600; cursor:pointer; }
.tool[aria-pressed=true] { background:#fbe6ae; border-color:#ad7e28; }
button:disabled { opacity:.45; cursor:default; }
button:focus-visible,input:focus-visible { outline:3px solid #47734c; outline-offset:3px; }
#message { min-height:26px; text-align:center; color:#75513b; font-size:14px; margin:12px 0 0; }
.instructions { padding:10px 0; }
.instructions h2 { margin:0 0 16px; font-size:24px; }
.rule { display:flex; align-items:center; gap:14px; margin:16px 0; }
.rule-symbol { flex-shrink:0; width:44px; height:44px; border:1px solid #c3ceb6; border-radius:12px; display:grid; place-items:center; background:#f5f5e9; font-size:24px; }
.instructions p { color:var(--muted); font-size:14px; }
.controls-help { border-top:1px solid #c3ceb6; margin-top:24px; padding-top:18px; }
.controls-help strong { color:#3b2a1f; }
.options { display:flex; gap:16px; flex-wrap:wrap; margin-top:18px; font-size:13px; }
.options label { display:flex; align-items:center; gap:6px; min-height:36px; cursor:pointer; }
.options input { accent-color:#47734c; }
#outcome { position:fixed; inset:0; margin:auto; width:min(440px,calc(100% - 28px)); max-height:calc(100dvh - 28px); overflow-y:auto; padding:26px; border:1px solid #c3ceb6; border-radius:24px; background:#fff8ed; color:#3b2a1f; text-align:center; box-shadow:0 24px 80px #1e171e40; }
#outcome::backdrop { background:#1e171e99; }
.daily-page:has(#outcome[open]) { overflow:hidden; }
#outcome h2 { font-size:24px; margin:4px 0 8px; }
#outcome p { font-size:14px; }
#outcome .result-hog { width:80px; height:80px; }
.result-close { position:absolute; top:12px; right:12px; font-size:23px; line-height:1; }
#share-preview { display:block; width:min(210px,100%); height:auto; margin:16px auto; border-radius:12px; }
#card-note { color:var(--muted); font-size:12px; }
.result-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
.result-actions a { text-decoration:none; }
#view-result { display:block; margin:16px auto 0; }
#share-status { min-height:22px; }
.daily-page [hidden] { display:none !important; }
#share-fallback { width:100%; margin-top:12px; min-height:110px; }
#outcome .result-app { margin:14px 0 0; padding-top:14px; border-top:1px solid #c3ceb6; color:var(--muted); font-size:13px; line-height:1.6; }
#outcome .result-app a { color:var(--text); font-weight:700; white-space:nowrap; }
.app-invite { margin-top:24px; border-top:1px solid #c3ceb6; padding-top:20px; }
.app-invite a { font-size:14px; }
.app-invite a + a { margin-top:8px; }
.app-invite .button { display:flex; }
#storage-note,#new-day { font-size:13px; color:#75513b; }
.daily-footnote { text-align:center; font-size:12px; color:var(--muted); margin:24px 0 0; }
@media(max-width:760px) { .daily-layout { grid-template-columns:1fr; gap:24px; } .daily-shell { max-width:600px; padding:24px 16px 40px; } .play-panel { padding:16px; } .instructions { padding:4px 8px; } .daily-heading { margin-bottom:22px; } }
@media(prefers-reduced-motion:no-preference) { .cell img { animation:arrive .18s ease-out; } @keyframes arrive { from { transform:scale(.8); } to { transform:scale(1); } } }

.quick-controls { margin:0 0 10px; text-align:center; color:var(--muted); font-size:12px; line-height:1.5; }
@media(max-width:760px) {
  .daily-shell { padding-top:14px; }
  .daily-heading { margin-bottom:14px; }
  .daily-heading .eyebrow,.daily-heading > p { display:none; }
  .daily-heading h1 { font-size:26px; line-height:1.3; }
  .play-panel { width:min(100%,max(320px,calc(100svh - 250px))); margin-inline:auto; padding:12px; border-radius:18px; }
  .board-meta { gap:4px 8px; margin-bottom:8px; font-size:12px; }
  .board-status { margin-bottom:8px; font-size:14px; }
  .quick-controls { font-size:11px; margin-bottom:8px; }
  .tools { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-top:10px; }
  .tools .tool { padding:8px 3px; font-size:12px; }
  #message { margin-top:8px; min-height:21px; font-size:12px; }
  .options { margin-top:4px; gap:6px 14px; }
}

#hint-offer { position:fixed; z-index:30; top:max(12px,env(safe-area-inset-top)); left:50%; transform:translateX(-50%); width:min(440px,calc(100% - 24px)); max-height:35dvh; overflow-y:auto; overscroll-behavior:contain; background:#fff8ed; border:1px solid #c69842; border-radius:16px; padding:10px 14px; margin:0; box-shadow:0 8px 28px #3b2a1f30; }
.hint-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:13px; }
.hint-actions > span { flex:1; font-weight:600; }
.hint-actions .tool { font-size:12px; padding:8px; }
#dismiss-hint { width:44px; font-size:22px; line-height:1; background:transparent; border-color:transparent; }
#hint-explanation { font-size:13px; margin:8px 0 0; line-height:1.6; }
.cell.hint-focus { box-shadow:inset 0 0 0 2px #9b6d29; }
.cell.hint-target { outline:3px solid #194f75; outline-offset:-3px; z-index:2; }

/* Match hint region IDs, independent of the palette/pattern index. */
.region-number { display:none; position:absolute; top:2px; left:2px; z-index:3; min-width:1.3em; padding:0 2px; border-radius:3px; background:#fff8ede6; color:#3b2a1f; font:600 10px/1.25 Inter,sans-serif; pointer-events:none; }
/* With patterns off, expose region IDs only on the active hint's evidence cells. */
.show-patterns .region-number,
.cell.hint-focus .region-number { display:block; }

.app-invite-icon { display:block; width:72px; height:72px; border-radius:16px; margin-bottom:12px; }
.daily-about { margin-top:36px; padding-top:24px; border-top:1px solid #c3ceb6; }
.daily-about h2 { font-size:24px; margin:0 0 12px; }
.daily-about h3 { font-size:18px; margin:24px 0 8px; }
.daily-about p { color:var(--muted); font-size:15px; line-height:1.8; margin:0; }
