/* Art is intentionally scoped: it shares no global button/canvas rules. */
#artView {
  --art-bg: #111b28; --art-panel: #172333; --art-line: #2d3b4c; --art-ink: #edf2f8;
  --art-muted: #9aaabd; --art-blue: #76afff; --art-yellow: #f5d47a;
  max-width: 1180px; margin: 0 auto; padding: 20px 20px 72px; color: var(--art-ink);
  font-family: 'Segoe UI', system-ui, sans-serif; text-align: left; line-height: 1.5;
}
#artView *, #artView *::before, #artView *::after { box-sizing: border-box; }
#artView[hidden], #artView.hidden, #artView [hidden] { display: none !important; }
#artView :is(h2,h3,p,ol) { margin: 0; padding: 0; color: inherit; font-family: inherit; text-transform: none; }
#artView button, #artView select, #artView input, #artView label { font-family: inherit; text-transform: none; letter-spacing: normal; }
#artView button::before, #artView button::after { content: none; }
#artView .art-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
#artView .art-eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .16em; color: var(--art-blue); margin-bottom: 16px; }
#artView #art-title { color: var(--art-ink); font-size: clamp(34px, 5vw, 59px); font-weight: 800; letter-spacing: -.055em; line-height: 1.07; text-shadow: none; margin-bottom: 16px; }
#artView #art-title span { color: var(--art-blue); }
#artView .art-intro { font-size: 15px; color: var(--art-muted); }
#artView .art-heading-stamp { display: flex; align-items: center; gap: 19px; padding-right: 16px; color: var(--art-yellow); transform: rotate(7deg); }
#artView .art-heading-stamp svg { width: 85px; height: 85px; }
#artView .art-heading-stamp span { font-size: 12px; font-weight: 850; line-height: 1.4; letter-spacing: .07em; }
#artView .art-load-panel { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 20px; border: 1px solid var(--art-line); background: var(--art-panel); border-radius: 13px; margin-bottom: 28px; overflow: hidden; }
#artView .art-load-copy { display: flex; align-items: flex-start; gap: 11px; }
#artView .art-load-copy strong { font-size: 13px; font-weight: 700; }
#artView .art-load-copy p { color: var(--art-muted); font-size: 12px; margin-top: 3px; max-width: 640px; }
#artView .art-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #75869b; flex-shrink: 0; margin-top: 7px; }
#artView .art-dot.is-ready { background: #98d8b2; }
#artView #artLoadProgress { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 3px; border: 0; appearance: none; background: #283e59; accent-color: var(--art-blue); }
#artView #artLoadProgress::-webkit-progress-bar { background: #283e59; }
#artView #artLoadProgress::-webkit-progress-value { background: var(--art-blue); }
#artView .art-button, #artView .art-icon-button, #artView .art-brush-size { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 0; min-height: 39px; height: auto; padding: 9px 14px; border: 1px solid var(--art-line); border-radius: 8px; background: #1b2a3c; color: var(--art-ink); box-shadow: none; font-size: 12px; font-weight: 650; line-height: 1.3; cursor: pointer; margin: 0; transform: none; transition: background .15s, border-color .15s; text-decoration: none; }
#artView .art-button:hover, #artView .art-icon-button:hover, #artView .art-brush-size:hover { background: #293d55; border-color: #5d7a9e; transform: none; box-shadow: none; }
#artView .art-button-primary { color: #0c233d; background: #8cbbff; border-color: #8cbbff; white-space: nowrap; }
#artView .art-button-primary:hover { color: #0c233d; background: #b1d2ff; border-color: #b1d2ff; }
#artView .art-button-primary:disabled { background: #263b50; border-color: #334b65; color: #a9c2d9; opacity: 1; }
#artView button:disabled { opacity: .42; cursor: default; }
#artView .art-button-quiet { background: transparent; border-color: transparent; color: var(--art-muted); }
#artView .art-button-quiet:hover { color: var(--art-ink); background: #243449; border-color: transparent; }
#artView .art-game-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(275px, 1fr); gap: 28px; align-items: start; }
#artView .art-drawing-column { min-width: 0; }
#artView .art-prompt-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 70px; padding-bottom: 16px; }
#artView .art-mini-label { display: block; color: var(--art-muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
#artView #artPromptName { margin: 5px 0 0; color: var(--art-ink); font-size: clamp(18px,2.1vw,25px); font-weight: 750; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
#artView .art-round-clock { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; gap: 2px; }
#artView #artRoundTime { color: var(--art-yellow); font-size: 11px; font-weight: 750; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
#artView #artNextBtn { min-height: 28px; padding: 5px 0 5px 7px; font-size: 11px; }
#artView .art-canvas-shell { position: relative; overflow: hidden; background: #fff; border: 1px solid #cdd9e7; border-radius: 12px; box-shadow: 0 8px 30px #0002; }
#artView #artCanvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #fff; padding: 0; margin: 0; border: 0; touch-action: none; cursor: crosshair; border-radius: 0; }
#artView #artCanvas.is-erasing { cursor: cell; }
#artView .art-canvas-hint { pointer-events: none; position: absolute; left: 10%; right: 10%; top: 46%; color: #8e99a5; text-align: center; font-size: 14px; font-style: italic; }
#artView .art-drawing-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--art-line); }
#artView .art-tool-cluster { display: flex; align-items: center; gap: 3px; }
#artView .art-icon-button, #artView .art-brush-size { padding: 0; width: 36px; height: 36px; min-height: 36px; border-color: transparent; background: transparent; }
#artView .art-icon-button svg { width: 19px; height: 19px; }
#artView .art-icon-button.is-selected, #artView .art-brush-size.is-selected { background: #293f5c; border-color: #45658b; color: #b4d4ff; }
#artView .art-brush-size span { display: block; width: var(--art-brush); height: var(--art-brush); border-radius: 50%; background: currentColor; }
#artView .art-tool-divider { height: 20px; width: 1px; margin: 0 6px; background: var(--art-line); }
#artView .art-drawing-tools .art-button { padding: 7px 9px; min-height: 36px; }
#artView .art-canvas-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 11px; font-size: 10px; color: var(--art-muted); }
#artView .art-canvas-footer .art-dot { width: 5px; height: 5px; margin: 0 5px 1px 0; }
#artView .art-canvas-footer label { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--art-muted); cursor: pointer; margin: 0; }
#artView input[type=checkbox] { width: 14px; height: 14px; padding: 0; margin: 0; accent-color: #85b5fc; }
#artView .art-guesses-panel { min-width: 0; padding: 22px; border: 1px solid var(--art-line); border-radius: 12px; background: var(--art-panel); margin-top: 70px; }
#artView .art-guesses-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#artView .art-guesses-heading .art-mini-label { font-size: 9px; letter-spacing: .09em; }
#artView .art-live-pill { font-size: 8px; font-weight: 750; letter-spacing: .07em; color: #a4b1c1; border: 1px solid #3c4a5d; border-radius: 4px; padding: 3px 5px; }
#artView .art-live-pill.is-live { color: #a6dbbc; border-color: #406252; }
#artView .art-guess-speech { margin-top: 22px; font-size: clamp(21px,2.5vw,29px); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; color: #deebff; overflow-wrap: anywhere; }
#artView .art-guess-context { color: var(--art-muted); margin: 12px 0 22px; font-size: 11px; line-height: 1.6; min-height: 36px; }
#artView .art-guess-list { list-style: none; margin: 0; padding: 0; }
#artView .art-guess-empty { padding: 25px 0; border-block: 1px solid var(--art-line); color: #788ba3; font-size: 12px; }
#artView .art-guess-row { display: grid; position: relative; grid-template-columns: 22px minmax(0,1fr) auto; gap: 7px; align-items: center; padding: 12px 0 14px; border-bottom: 1px solid #2b3a4c; }
#artView .art-guess-rank { color: #697d96; font-size: 10px; font-variant-numeric: tabular-nums; }
#artView .art-guess-row strong { color: #c3d1e2; font-size: 12px; font-weight: 550; line-height: 1.3; }
#artView .art-guess-row:first-child strong { color: #e6f0ff; font-weight: 750; }
#artView .art-guess-row:first-child .art-guess-rank { color: var(--art-blue); }
#artView .art-guess-meter { position: absolute; bottom: 0; left: 29px; right: 0; height: 2px; background: linear-gradient(to right, #76afff55 var(--art-match), transparent var(--art-match)); }
#artView .art-round-result { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; text-align: center; padding: 28px; background: #eef5fff2; color: #172e4b; backdrop-filter: blur(3px); }
#artView .art-round-result strong { color: #172e4b; font-size: clamp(23px,3vw,36px); font-weight: 800; line-height: 1.1; }
#artView .art-round-result > span:not(.art-mini-label) { max-width: 330px; color: #586d85; font-size: 12px; }
#artView .art-round-result .art-mini-label { color: #52749e; }
@media(max-width:800px) {
  #artView { padding: 16px 12px 50px; }
  #artView .art-game-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  #artView .art-guesses-panel { margin-top: 0; }
  #artView .art-guesses-heading .art-mini-label { font-size: 10px; }
  #artView .art-heading-stamp { padding: 0; gap: 10px; }
  #artView .art-heading-stamp svg { width: 62px; height: 62px; }
  #artView .art-heading-stamp span { display: none; }
}
@media(max-width:480px) {
  #artView .art-heading { margin-bottom: 22px; gap: 10px; }
  #artView .art-eyebrow { font-size: 9px; letter-spacing: .11em; }
  #artView .art-load-panel { flex-direction: column; align-items: stretch; gap: 12px; padding: 15px; }
  #artView .art-load-panel .art-button { width: 100%; }
  #artView .art-drawing-tools { gap: 3px; }
  #artView .art-icon-button, #artView .art-brush-size { width: 29px; height: 34px; min-height: 34px; }
  #artView .art-drawing-tools .art-button { padding: 7px 5px; font-size: 10px; }
  #artView .art-tool-divider { margin: 0 3px; }
  #artView .art-canvas-footer { flex-wrap: wrap; gap: 9px; }
  #artView .art-guesses-panel { padding: 18px; }
}
@media(prefers-reduced-motion:reduce) { #artView *,#artView *::before,#artView *::after { scroll-behavior: auto !important; transition: none !important; } }

#artView .art-canvas-shell { user-select: none; -webkit-user-select: none; }
#artView .art-result-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
#artView .art-guess-row { grid-template-columns: 22px minmax(0,1fr); }

#artView .art-sharing { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--art-line); }
#artView .art-sharing label { display: flex; align-items: flex-start; gap: 8px; color: var(--art-muted); font-size: 11px; line-height: 1.5; cursor: pointer; }
#artView .art-sharing input { flex: 0 0 auto; margin-top: 2px; }
#artView .art-sharing p { font-size: 10px; color: var(--art-muted); line-height: 1.5; margin: 6px 0 0 22px; }
#artView #artShareStatus:empty { display: none; }
#artView .art-heading-stamp { padding-right: 0; }
#artView .art-prompt-row { min-height: 112px; }
#artView .art-prompt-card { display: flex; align-items: center; gap: 16px; min-width: 0; }
#artView .art-prompt-copy { min-width: 0; }
#artView #artReferenceImage { display: block; flex: 0 0 96px; width: 96px; height: 96px; object-fit: contain; border: 0; border-radius: 0; margin: 0; }
#artView .art-guesses-panel { margin-top: 112px; }
@media(max-width:800px) { #artView .art-guesses-panel { margin-top: 0; } }
@media(max-width:480px) {
  #artView .art-prompt-row { gap: 10px; min-height: 100px; }
  #artView .art-prompt-card { gap: 10px; }
  #artView #artReferenceImage { flex-basis: 80px; width: 80px; height: 80px; }
  #artView .art-prompt-copy .art-mini-label { font-size: 9px; letter-spacing: .06em; }
}
@media(max-width:360px) { #artView #artReferenceImage { flex-basis: 64px; width: 64px; height: 64px; } }

#artView .art-voice-status { margin-top: 8px; color: var(--art-muted); font-size: 11px; line-height: 1.5; }
