/* Watch (/watch) inside the app, the AI gallery dialog and the chosen partner on the Play page. Same family as the
   Leaderboard and Tournament Hall: dark emerald panels, gold lines, serif gold headings. Motion only with
   html[data-motion=full]. */
#watchView{--wv-gold:#d7b45a;--wv-soft:#f3d68a;--wv-cream:#efe6cf;--wv-text:#dde6e0;--wv-muted:#a3b6ae;--wv-line:rgba(215,180,90,.3);--wv-line-strong:rgba(215,180,90,.62);--wv-green:#3ad98c}
html body #watchView:not([hidden]){display:block!important;width:100%!important;max-width:1220px!important;height:auto!important;margin:18px auto 40px!important;padding:22px!important;border:1px solid rgba(216,183,108,.42)!important;border-radius:22px!important;background:radial-gradient(120% 50% at 0% 0%,rgba(216,183,108,.12),transparent 55%),linear-gradient(180deg,rgba(18,58,56,.97) 0%,rgba(13,42,44,.97) 60%,rgba(10,33,36,.97) 100%)!important;box-shadow:0 24px 60px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.06)!important;box-sizing:border-box;color:var(--wv-text)}
#watchView *{box-sizing:border-box}
#watchView .wv-icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#watchView .wv-banner{position:relative;overflow:hidden;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;margin:0 0 16px;padding:20px 26px;border:1px solid rgba(215,180,90,.6);border-radius:20px;background:radial-gradient(110% 150% at 0% 0%,rgba(215,180,90,.24),rgba(215,180,90,0) 55%),radial-gradient(80% 120% at 100% 100%,rgba(47,210,126,.16),rgba(47,210,126,0) 60%),linear-gradient(135deg,#14403c 0%,#0c2a2b 58%,#081d1f 100%);box-shadow:0 18px 40px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.07);color:var(--wv-cream)}
#watchView .wv-medal{display:grid;place-items:center;width:74px;height:74px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff0bf,#e3b95c 55%,#a8782a);color:#173b36;box-shadow:0 0 0 6px rgba(215,180,90,.18),0 10px 24px rgba(0,0,0,.35)}
#watchView .wv-medal .wv-icon{width:36px;height:36px;stroke-width:1.6}
#watchView .wv-eyebrow{margin:0 0 4px;color:var(--wv-soft);font:700 12px/1.2 system-ui,sans-serif;letter-spacing:.28em;text-transform:uppercase}
#watchView .wv-banner h1{margin:0;color:var(--wv-soft);font:700 clamp(28px,3.4vw,40px)/1.1 Georgia,'Noto Serif KR',serif}
#watchView .wv-sub{margin:6px 0 0;max-width:640px;color:var(--wv-cream);font:400 15px/1.5 system-ui,sans-serif}
#watchView .wv-error{margin:0 0 12px;padding:10px 14px;border:1px solid rgba(255,140,120,.45);border-radius:12px;background:rgba(120,30,20,.25);color:#ffd4c8}
#watchView .wv-section{margin:0 0 18px}
#watchView .wv-head{display:flex;align-items:center;gap:10px;margin:0 0 10px}
#watchView .wv-head h2{display:flex;align-items:center;gap:8px;margin:0;color:var(--wv-soft);font:700 22px/1.2 Georgia,'Noto Serif KR',serif}
#watchView .wv-count{min-width:26px;padding:2px 9px;border:1px solid var(--wv-line-strong);border-radius:999px;color:var(--wv-soft);font:700 12.5px/1.4 system-ui,sans-serif;text-align:center}
#watchView .wv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
#watchView .wv-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:center;padding:12px;border:1px solid var(--wv-line);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.08));color:var(--wv-text);text-decoration:none;transition:border-color .2s,transform .2s,box-shadow .2s}
#watchView .wv-card:hover,#watchView .wv-card:focus-visible{border-color:var(--wv-line-strong);box-shadow:0 10px 24px rgba(0,0,0,.3)}
html[data-motion=full] #watchView .wv-card:hover{transform:translateY(-2px)}
#watchView .wv-board{display:grid;grid-template-columns:repeat(8,1fr);width:120px;aspect-ratio:1;border:2px solid rgba(215,180,90,.55);border-radius:6px;overflow:hidden;background:#e9dfc4}
#watchView .wv-sq{position:relative;background:#efe4c8}
#watchView .wv-sq.dark{background:#5b8a6d}
#watchView .wv-sq img{position:absolute;inset:6%;width:88%;height:88%;object-fit:contain}
#watchView .wv-meta{display:grid;gap:6px;min-width:0}
#watchView .wv-player{display:flex;align-items:center;gap:7px;min-width:0}
#watchView .wv-player strong{min-width:0;overflow:hidden;color:var(--wv-cream);font:700 15px/1.25 system-ui,sans-serif;text-overflow:ellipsis;white-space:nowrap}
#watchView .wv-player small{flex:none;color:var(--wv-muted);font:600 12px/1 system-ui,sans-serif}
#watchView .wv-dot{flex:none;width:11px;height:11px;border:1px solid rgba(0,0,0,.4);border-radius:50%}
#watchView .wv-dot.w{background:#f6f0de}#watchView .wv-dot.b{background:#1d2422}
#watchView .wv-foot{display:grid;gap:3px;margin-top:2px;color:var(--wv-muted);font:500 12.5px/1.35 system-ui,sans-serif}
#watchView .wv-state{display:flex;align-items:center;gap:6px;color:var(--wv-soft);font-weight:700}
#watchView .wv-card[data-status=active] .wv-state{color:var(--wv-green)}
#watchView .wv-pulse{width:8px;height:8px;border-radius:50%;background:var(--wv-green);box-shadow:0 0 0 0 rgba(58,217,140,.6)}
html[data-motion=full] #watchView .wv-pulse{animation:wv-pulse 1.6s ease-out infinite}
@keyframes wv-pulse{to{box-shadow:0 0 0 9px rgba(58,217,140,0)}}
#watchView .wv-none{margin:0;padding:12px 14px;border:1px dashed var(--wv-line);border-radius:14px;color:var(--wv-muted)}
#watchView .wv-empty{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:center;padding:24px;border:1px dashed var(--wv-line-strong);border-radius:18px;background:rgba(0,0,0,.12)}
#watchView .wv-empty-art{display:grid;place-items:center;width:84px;height:84px;border:2px solid var(--wv-line-strong);border-radius:50%;color:var(--wv-soft)}
#watchView .wv-empty-art .wv-icon{width:40px;height:40px}
#watchView .wv-empty-copy strong{display:block;margin:0 0 6px;color:var(--wv-soft);font:700 21px/1.25 Georgia,'Noto Serif KR',serif}
#watchView .wv-empty-copy p{margin:0;max-width:620px;color:var(--wv-text);font:400 14.5px/1.55 system-ui,sans-serif}
#watchView .wv-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px}
#watchView :is(.wv-cta,.wv-ghost){display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:12px;font:700 15px/1 system-ui,sans-serif;text-decoration:none}
#watchView .wv-cta{border:1px solid #f3d68a;background:linear-gradient(180deg,#f0d483,#d4a94e);color:#1c2b22;box-shadow:0 4px 0 #8a6527}
#watchView .wv-ghost{border:1px solid var(--wv-line-strong);background:rgba(0,0,0,.18);color:var(--wv-soft)}
@media (max-width:700px){
 html body #watchView:not([hidden]){margin:8px auto 24px!important;padding:12px!important;border-radius:16px!important}
 #watchView .wv-banner{grid-template-columns:1fr;padding:16px;gap:10px}
 #watchView .wv-medal{width:52px;height:52px}#watchView .wv-medal .wv-icon{width:26px;height:26px}
 #watchView .wv-grid{grid-template-columns:1fr}
 #watchView .wv-card{grid-template-columns:96px minmax(0,1fr)}#watchView .wv-board{width:96px}
 #watchView .wv-empty{grid-template-columns:1fr;text-align:left;padding:16px}
 #watchView .wv-empty-art{width:60px;height:60px}
}

/* The AI gallery dialog. */
.aig-dialog{--aig-gold:#d7b45a;--aig-soft:#f3d68a;--aig-cream:#efe6cf;--aig-text:#dde6e0;--aig-muted:#a3b6ae;--aig-line:rgba(215,180,90,.3);box-sizing:border-box;width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:18px 20px;border:1px solid rgba(215,180,90,.6);border-radius:20px;background:linear-gradient(180deg,#14403c 0%,#0c2a2b 60%,#081d1f 100%);color:var(--aig-text);box-shadow:0 30px 80px rgba(0,0,0,.55);overflow:auto}
html body dialog.aig-dialog{width:min(960px,calc(100vw - 24px))!important;max-width:none!important;max-height:calc(100dvh - 24px)!important}
.aig-dialog::backdrop{background:rgba(3,12,12,.72)}
.aig-dialog *{box-sizing:border-box}
.aig-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.aig-head h2{margin:0;color:var(--aig-soft);font:700 26px/1.15 Georgia,'Noto Serif KR',serif}
.aig-close{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--aig-line);border-radius:50%;background:rgba(0,0,0,.25);color:var(--aig-cream);font:400 24px/1 system-ui,sans-serif;cursor:pointer}
.aig-note{margin:6px 0 12px;color:var(--aig-muted);font:400 13.5px/1.45 system-ui,sans-serif}
.aig-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,240px);gap:10px}
.aig-search,.aig-country{min-height:42px;padding:8px 12px;border:1px solid var(--aig-line);border-radius:12px;background:rgba(0,0,0,.28);color:var(--aig-cream);font:500 15px/1.2 system-ui,sans-serif}
.aig-country option{background:#0c2a2b;color:var(--aig-cream)}
.aig-bands{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}
.aig-chip,.aig-page{min-height:34px;padding:6px 12px;border:1px solid var(--aig-line);border-radius:999px;background:rgba(0,0,0,.2);color:var(--aig-cream);font:600 13px/1.1 system-ui,sans-serif;cursor:pointer}
.aig-chip[aria-pressed=true]{border-color:#f3d68a;background:linear-gradient(180deg,#f0d483,#d4a94e);color:#1c2b22}
.aig-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:10px;min-height:120px}
.aig-grid[aria-busy=true]{opacity:.6}
.aig-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;padding:10px;border:1px solid var(--aig-line);border-radius:14px;background:rgba(255,255,255,.04);color:var(--aig-text);text-align:left;cursor:pointer;transition:border-color .2s,box-shadow .2s}
.aig-card:hover:not(:disabled),.aig-card:focus-visible{border-color:rgba(215,180,90,.75);box-shadow:0 8px 20px rgba(0,0,0,.3)}
.aig-card:disabled{opacity:.55;cursor:not-allowed}
.aig-portrait{width:54px!important;height:54px!important}
.aig-words{display:grid;gap:2px;min-width:0}
.aig-name{display:flex;align-items:center;gap:6px;min-width:0;color:var(--aig-cream);font:700 14.5px/1.25 system-ui,sans-serif}
.aig-name>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aig-country-line,.aig-style{color:var(--aig-muted);font:500 12px/1.3 system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aig-level{color:var(--aig-soft);font:700 12.5px/1.3 system-ui,sans-serif}
.aig-none{grid-column:1/-1;margin:0;padding:16px;color:var(--aig-muted)}
.aig-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0 4px}
.aig-page:disabled{opacity:.45;cursor:default}
.aig-page-label{color:var(--aig-muted);font:500 13px/1.3 system-ui,sans-serif}
.aig-surprise{display:block;width:100%;min-height:42px;margin-top:10px;border:1px dashed rgba(215,180,90,.6);border-radius:12px;background:transparent;color:var(--aig-soft);font:700 14px/1.2 system-ui,sans-serif;cursor:pointer}
@media (max-width:600px){.aig-dialog{padding:14px}.aig-head h2{font-size:21px}.aig-tools{grid-template-columns:1fr}.aig-grid{grid-template-columns:1fr}.aig-page-label{font-size:12px;text-align:center}}

/* The chosen AI partner on the Play page. */
html body #playView #playHome .hub-pick-ai{grid-column:1/-1;width:100%;margin-top:6px}
html body #playView #playHome .hub-partner{grid-column:1/-1;display:flex;align-items:center;gap:8px;width:100%;min-width:0;margin-top:4px}
html body #playView #playHome .hub-partner-card{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:6px 10px;border:1px solid rgba(215,180,90,.45);border-radius:12px;background:rgba(0,0,0,.2)}
html body #playView #playHome .hub-partner-portrait{width:40px!important;height:40px!important;flex:none}
html body #playView #playHome .hub-partner-words{display:grid;gap:2px;min-width:0}
html body #playView #playHome .hub-partner-words strong{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;color:#efe6cf;font:700 14px/1.2 system-ui,sans-serif;white-space:nowrap;text-overflow:ellipsis}
html body #playView #playHome .hub-partner-words small{color:#a3b6ae;font:500 12px/1.2 system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #playView #playHome :is(.hub-partner-change,.hub-partner-clear){flex:none}
