:root { --paper:#e5f2fc; --surface:#fff; --ink:#13243a; --muted:#477291; --line:#b6d3e9; --soft:#cfe3f3; --blue:#176a9f; --blue-bright:#4da7e8; --pink:#e84482; --pink-dark:#b92c63; --pink-soft:#fff0f5; --selected:#d9ecfb; font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic",sans-serif; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; }
button { font:inherit; cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.45; }
a { color:var(--blue); text-underline-offset:3px; }
:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.site-header { display:flex; justify-content:space-between; align-items:center; min-height:66px; padding:0 max(24px,calc((100vw - 1120px)/2)); border-bottom:1px solid var(--line); background:var(--surface); }
.brand { color:var(--ink); font-size:17px; font-weight:750; text-decoration:none; }
.brand span { margin-left:12px; color:var(--muted); font-size:12px; font-weight:500; }
.site-header nav { display:flex; align-items:center; gap:22px; font-size:12px; }
.site-header nav button { padding:4px 0; border:0; background:transparent; color:var(--muted); }
.site-footer { padding:24px max(24px,calc((100vw - 1120px)/2)); border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.shell { width:min(1120px,calc(100% - 48px)); margin:0 auto; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border:1px solid var(--blue-bright); border-radius:6px; background:var(--blue-bright); color:var(--ink); font-size:13px; font-weight:700; text-decoration:none; }
.button:hover:not(:disabled) { background:#2f8fce; border-color:#2f8fce; }
.button.secondary { border-color:var(--line); background:var(--surface); color:var(--ink); }
.button.secondary:hover:not(:disabled) { border-color:var(--blue); background:var(--selected); }
.notice { margin:0; padding:12px 24px; border-bottom:1px solid var(--line); background:#fff5db; text-align:center; font-size:13px; }
.hero { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(300px,.8fr); gap:clamp(40px,7vw,90px); align-items:center; min-height:560px; padding:64px 0; }
.hero h1 { margin:0; font-size:clamp(38px,5vw,62px); line-height:1.25; letter-spacing:-.045em; }
.lead { max-width:580px; margin:24px 0; color:#445b73; font-size:15px; line-height:1.9; }
.hero-meta { display:flex; margin:28px 0 24px; border:1px solid var(--line); background:var(--surface); }
.hero-meta span { flex:1; padding:13px 16px; color:var(--muted); font-size:11px; }
.hero-meta span + span { border-left:1px solid var(--line); }
.hero-meta b { display:block; margin-top:4px; color:var(--ink); font-size:15px; }
.actions { display:flex; flex-wrap:wrap; gap:10px; }
.affiliate-banner { align-self:stretch; display:flex; flex-direction:column; justify-content:center; width:100%; min-height:420px; margin-top:0; padding:28px 24px 30px; border:1px solid var(--line); background:var(--surface); overflow:hidden; }
.affiliate-banner-head { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:14px; color:var(--muted); font-size:11px; }
.affiliate-banner-head strong { color:var(--ink); font-size:14px; }
.affiliate-banner-viewport { overflow:hidden; }
.affiliate-banner-track { display:flex; width:max-content; gap:14px; animation:affiliate-banner-scroll 80s linear infinite; }
.affiliate-banner:hover .affiliate-banner-track, .affiliate-banner:focus-within .affiliate-banner-track { animation-play-state:paused; }
.affiliate-banner-card { display:flex; flex-direction:column; gap:10px; width:400px; padding-right:18px; border-right:1px solid var(--soft); color:var(--muted); font-size:12px; text-decoration:none; }
.affiliate-banner-card img { display:block; width:382px; height:250px; object-fit:cover; border:1px solid var(--soft); }
.affiliate-banner-card:hover span, .affiliate-banner-card:focus-visible span { color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
@keyframes affiliate-banner-scroll { from { transform:translateX(0); } to { transform:translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .affiliate-banner-track { animation:none; } }
.small-note { color:var(--muted); font-size:11px; line-height:1.7; }
.how { padding:28px; border:1px solid var(--line); border-top:3px solid var(--blue); background:var(--surface); }
.how h2 { margin:0 0 12px; font-size:21px; }
.how ol { margin:0; padding:0; list-style:none; }
.how li { display:grid; gap:5px; padding:17px 0; border-top:1px solid var(--soft); }
.how li b { font-size:14px; }
.how li span { color:var(--muted); font-size:12px; }
.catalog-overview { padding:36px 0 70px; border-top:1px solid var(--line); }
.catalog-overview ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 26px; margin:24px 0 0; padding:0; list-style:none; }
.catalog-overview li { display:grid; grid-template-columns:62px 1fr auto; gap:10px; align-items:center; padding:12px 0; border-top:1px solid var(--soft); font-size:13px; }
.catalog-overview li span,.catalog-overview li small { color:var(--muted); font-size:11px; }
.flow-shell { padding:42px 0 80px; }
.privacy-page { max-width:820px; }
.privacy-intro { margin:20px 0 28px; color:var(--muted); font-size:13px; line-height:1.7; }
.privacy-section { padding:20px 0; border-top:1px solid var(--soft); }
.privacy-section h2 { margin:0 0 10px; font-size:18px; }
.privacy-section p { margin:8px 0; font-size:13px; line-height:1.8; }
.session-strip { display:flex; justify-content:space-between; gap:16px; margin-bottom:26px; color:var(--muted); font-size:11px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:30px; padding-bottom:18px; border-bottom:1px solid var(--ink); }
.section-head h1,.section-head h2 { margin:0; font-size:clamp(28px,4vw,40px); letter-spacing:-.035em; }
.section-head p { max-width:340px; margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.section-head .step { margin-bottom:5px; color:var(--blue); font-size:12px; font-weight:700; }
.counter { text-align:right; }
.counter b { display:block; color:var(--ink); font-size:20px; }
.progress { height:3px; background:var(--soft); }
.progress span { display:block; height:100%; background:var(--blue); }
.intro { margin:20px 0 28px; color:var(--muted); font-size:13px; line-height:1.7; }
.work-list { border-bottom:1px solid var(--line); }
.work-row { display:grid; grid-template-columns:140px minmax(0,1fr) 170px; gap:24px; min-height:192px; padding:25px 0; border-top:1px solid var(--line); }
.work-row.answer-keep { background:var(--selected); }
.work-art { display:grid; place-items:center; width:140px; height:140px; border:1px solid var(--line); background:#e9f2f8; color:var(--blue); font-size:21px; font-weight:700; }
.work-meta { color:var(--blue); font-size:11px; font-weight:700; }
.work-info h3,.compare-card h2 { margin:8px 0 12px; font-size:18px; line-height:1.45; }
.work-info h3 strong,.work-info h3 span,.compare-card h2 strong,.compare-card h2 span { display:block; }
.work-info h3 span,.compare-card h2 span { font-size:13px; font-weight:500; }
.sample-note { margin:0 0 8px; color:var(--muted); font-size:11px; }
.work-link { font-size:12px; }
.work-controls { display:flex; flex-direction:column; align-items:stretch; gap:5px; }
.work-controls button,.compact-controls button,.rank-tools button { min-height:30px; padding:3px 8px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); font-size:11px; }
.work-controls button[aria-pressed="true"],.compact-controls button[aria-pressed="true"] { border-color:var(--blue); background:var(--blue); color:#fff; }
.answer-label { padding-top:3px; color:var(--muted); font-size:11px; text-align:right; }
.bottom-actions { display:flex; justify-content:space-between; gap:12px; margin-top:28px; }
.bottom-actions > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.candidate-groups { margin:24px 0 35px; }
.candidate-groups section { margin-top:26px; }
.candidate-groups h2 { margin:0 0 8px; font-size:19px; }
.candidate-groups h2 span { color:var(--muted); font-size:14px; }
.candidate-shell { padding-bottom:90px; }
.candidate-back { min-height:40px; margin:-12px 0 18px; }
.candidate-shell .section-head { align-items:end; }
.candidate-action-bar { position:sticky; z-index:4; top:0; display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:76px; margin-top:18px; padding:12px 18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--surface); }
.candidate-action-bar strong,.candidate-action-bar span { display:block; }
.candidate-action-bar strong { font-size:18px; }
.candidate-action-bar span { margin-top:2px; color:var(--muted); font-size:12px; }
.candidate-action-bar .button { min-width:148px; }
.candidate-intro { max-width:720px; margin:22px 0 34px; color:var(--muted); font-size:13px; line-height:1.8; }
.candidate-warning { padding:12px 16px; border-left:3px solid var(--ink); background:var(--surface); color:var(--ink); }
.candidate-groups { margin:0; }
.candidate-groups section { margin:0; }
.candidate-groups h2 { margin:0 0 12px; padding-bottom:12px; border-bottom:1px solid var(--ink); font-size:21px; }
.candidate-groups h2 span { margin-left:5px; }
.candidate-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; }
.candidate-card { display:grid; grid-template-columns:92px minmax(0,1fr); gap:12px 16px; align-content:start; padding:20px 0; border-bottom:1px solid var(--soft); }
.candidate-card .work-art { width:92px; height:120px; }
.candidate-card-info { min-width:0; }
.candidate-card-info p { margin:0 0 5px; color:var(--muted); font-size:11px; }
.candidate-card-info h3 { margin:0 0 10px; font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.candidate-card-info h3 strong,.candidate-card-info h3 span { display:block; }
.candidate-card-info h3 strong { margin-bottom:3px; font-size:20px; }
.candidate-card-info h3 span { font-size:12px; font-weight:400; }
.candidate-card-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; }
.candidate-remove,.candidate-add { min-height:40px; padding:7px 15px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); font-size:12px; }
.candidate-remove:hover { border-color:var(--ink); }
.candidate-add { border-color:var(--blue-bright); background:var(--blue-bright); color:var(--ink); }
.candidate-add:hover { border-color:#2f8fce; background:#2f8fce; }
.candidate-rejected { margin-top:40px !important; }
.candidate-rejected summary { min-height:60px; padding:18px 0; border-top:1px solid var(--ink); border-bottom:1px solid var(--line); cursor:pointer; font-size:18px; font-weight:700; }
.candidate-rejected summary span { margin-left:12px; color:var(--muted); font-size:12px; font-weight:400; }
.rejected-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; padding-top:8px; }
.rejected-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:70px; padding:10px 0; border-bottom:1px solid var(--soft); }
.rejected-row b,.rejected-row small { display:block; }
.rejected-row b { font-size:14px; }
.rejected-row small { margin-top:3px; color:var(--muted); font-size:11px; }
.rejected-row > div:last-child { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.compact-list { border-top:1px solid var(--line); }
.compact-row { display:flex; justify-content:space-between; align-items:center; gap:20px; min-height:62px; padding:10px 0; border-bottom:1px solid var(--soft); }
.compact-row b,.compact-row small { display:block; }
.compact-row b { font-size:14px; }
.compact-row small { margin-top:3px; color:var(--muted); font-size:11px; }
.compact-controls { display:flex; gap:5px; white-space:nowrap; }
.compare-grid { display:grid; grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr); gap:22px; align-items:center; margin:32px 0; }
.compare-card { display:flex; flex-direction:column; align-items:flex-start; min-height:390px; padding:24px; border:1px solid var(--line); background:var(--surface); }
.compare-card .work-art { width:130px; height:130px; margin-bottom:18px; }
.compare-card p { color:var(--muted); font-size:12px; }
.compare-card a { margin-bottom:24px; font-size:12px; }
.compare-card .button { margin-top:auto; align-self:stretch; }
.versus { color:var(--blue); font-weight:700; text-align:center; }
.rank-list { margin:26px 0; border-top:1px solid var(--line); }
.rank-row { display:grid; grid-template-columns:54px minmax(0,1fr) auto; gap:18px; align-items:center; min-height:96px; border-bottom:1px solid var(--soft); }
.rank-no { color:var(--blue); font-size:32px; }
.rank-row b,.rank-row span:not(.rank-no) { display:block; }
.rank-row b { font-size:18px; }
.rank-row span:not(.rank-no) { margin-top:5px; color:var(--muted); font-size:12px; }
.rank-tools { display:flex; gap:6px; font-size:12px; }
.rank-tools button { width:36px; height:36px; font-size:18px; }
.result-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; }
.share-preview { margin-top:42px; padding:26px 0 30px; border-top:1px solid var(--ink); border-bottom:1px solid var(--line); }
.share-preview h2 { margin:0 0 6px; font-size:22px; }
.share-preview p { margin:0; color:var(--muted); font-size:12px; line-height:1.7; }
.share-preview pre { overflow-wrap:anywhere; white-space:pre-wrap; margin:20px 0 0; padding:20px; border:1px solid var(--line); background:var(--surface); color:var(--ink); font:inherit; font-size:13px; line-height:1.8; }
.share-preview .result-actions { margin-top:18px; }
.error-state { min-height:60vh; padding:70px 0; }
@media (max-width:800px) {
  .hero { grid-template-columns:1fr; min-height:0; }
  .how { max-width:600px; }
  .work-row { grid-template-columns:110px minmax(0,1fr); }
  .work-art { width:110px; height:110px; }
  .work-controls { grid-column:2; flex-direction:row; flex-wrap:wrap; }
  .answer-label { align-self:center; }
}
@media (max-width:620px) {
  .site-header { padding:0 20px; }
  .site-header nav { gap:10px; }
  .site-header nav button { min-height:44px; }
  .site-header nav a { display:none; }
  .site-footer { padding:22px 20px; }
  .shell { width:calc(100% - 40px); }
  .hero { padding:50px 0; }
  .hero h1 { font-size:36px; }
  .hero-meta span { padding:10px; }
  .hero-meta b { font-size:12px; }
  .affiliate-banner { min-height:0; margin-top:28px; padding-inline:14px; }
  .affiliate-banner-head { display:block; line-height:1.7; }
  .affiliate-banner-head span { display:block; }
  .affiliate-banner-card { width:196px; padding-right:10px; }
  .affiliate-banner-card img { width:184px; height:104px; }
  .catalog-overview ul { grid-template-columns:1fr; }
  .catalog-overview li { grid-template-columns:60px 1fr auto; }
  .section-head { align-items:stretch; flex-direction:column; gap:8px; }
  .section-head h1,.section-head h2 { font-size:28px; }
  .section-head p:not(.step) { font-size:11px; }
  .counter { text-align:left; }
  .work-row { grid-template-columns:88px minmax(0,1fr); gap:14px; padding:18px 0; }
  .work-art { width:88px; height:88px; font-size:14px; }
  .work-info h3 { font-size:15px; }
  .work-info h3 span { font-size:11px; }
  .work-controls { grid-column:1/-1; }
  .work-controls button { flex:1; }
  .answer-label { width:100%; text-align:left; }
  .compact-row { align-items:flex-start; flex-direction:column; gap:8px; }
  .compare-grid { grid-template-columns:1fr; gap:10px; }
  .compare-card { min-height:0; }
  .compare-card .work-art { width:90px; height:90px; }
  .versus { padding:5px; }
  .rank-row { grid-template-columns:34px minmax(0,1fr); gap:10px; padding:12px 0; }
  .rank-no { font-size:25px; }
  .rank-tools { grid-column:2; }
}
.campaign-disclosure { margin:24px 0 12px; color:var(--muted); font-size:12px; line-height:1.6; }
#preview-dialog { width:min(640px,calc(100% - 32px)); border:1px solid var(--line); padding:20px; color:var(--ink); background:var(--surface); }
#preview-dialog::backdrop { background:rgb(16 38 54 / 55%); }
#preview-dialog form { display:flex; justify-content:flex-end; margin-bottom:12px; }
#preview-dialog .preview-help { margin:10px 0 0; font-size:13px; line-height:1.6; }
#preview-dialog .preview-help .text-action { font-size:inherit; }
.product-link { display:inline-flex; flex-direction:column; align-items:flex-start; gap:8px; }
.product-link img { display:block; width:min(100%,320px); height:auto; }
.teacher-name-dialog { width:min(480px,calc(100% - 32px)); margin:auto; padding:28px; border:1px solid var(--line); color:var(--ink); background:var(--surface); }
.teacher-name-dialog::backdrop { background:rgb(16 38 54 / 55%); }
.teacher-name-dialog form { display:flex; flex-direction:column; }
.teacher-name-dialog .step { margin:0 0 10px; color:var(--muted); font-size:11px; letter-spacing:.1em; }
.teacher-name-dialog h1 { margin:0; font-size:24px; line-height:1.4; }
.name-help { margin:14px 0 20px; color:var(--muted); font-size:13px; line-height:1.7; }
.teacher-name-dialog label { margin-bottom:7px; font-size:13px; font-weight:700; }
.teacher-name-dialog input { min-height:44px; padding:0 12px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); font:inherit; }
.teacher-name-dialog input:focus { outline:2px solid var(--blue); outline-offset:2px; }
.name-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.name-actions .button { flex:1 1 180px; }

/* The preliminary round is one scannable catalogue, grouped by release wave. */
.play-shell { padding-top:48px; padding-bottom:112px; }
.play-kicker { margin:0 0 13px; color:var(--blue); font-size:12px; font-weight:700; letter-spacing:.08em; }
.play-shell .section-head { align-items:end; padding-bottom:22px; border-color:var(--ink); }
.play-shell .section-head h1 { font-size:clamp(32px,3.5vw,46px); line-height:1.25; letter-spacing:-.04em; }
.play-shell .section-head .step { margin:0 0 10px; color:var(--muted); font-size:11px; letter-spacing:.12em; }
.play-shell .counter { color:var(--muted); font-size:12px; }
.play-shell .counter b { font-size:24px; line-height:1.15; }
.play-shell .intro { max-width:730px; margin:20px 0 42px; color:var(--ink); font-size:14px; line-height:1.9; }
.play-layout { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:32px; align-items:start; }
.play-catalog { min-width:0; }
.wave-group { margin:0 0 43px; }
.wave-heading { display:flex; align-items:center; gap:12px; margin:0; padding:0 0 12px; border-bottom:1px solid var(--ink); color:var(--ink); font-size:19px; font-weight:700; letter-spacing:-.02em; }
.wave-heading::before { content:""; display:block; width:5px; height:22px; background:var(--blue); }
.play-catalog .work-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; border:0; }
.play-catalog .work-row { position:relative; min-width:0; min-height:0; grid-template-columns:124px minmax(0,1fr); gap:14px 17px; align-content:start; padding:22px 0 21px; border-top:0; border-bottom:1px solid var(--soft); background:transparent; }
.work-art { display:block; width:124px; height:160px; overflow:hidden; border:1px solid var(--line); background:#e9f2f8; }
.work-image { display:block; width:100%; height:100%; object-fit:cover; }
.work-art-fallback { display:grid; width:100%; height:100%; place-items:center; color:var(--blue); font-size:12px; font-weight:700; }
.play-catalog .work-info { min-width:0; }
.play-catalog .work-meta { color:var(--muted); font-size:11px; font-weight:500; }
.play-catalog .work-info h3 { margin:7px 0 12px; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.play-catalog .work-info h3 strong { display:block; margin-bottom:4px; font-size:21px; line-height:1.2; }
.play-catalog .work-info h3 span { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; font-size:12px; line-height:1.55; font-weight:400; }
.work-links { display:flex; flex-wrap:wrap; gap:7px 14px; font-size:12px; }
.work-links .product-link { display:inline; }
.work-links .product-link img { display:none; }
.text-action { padding:0; border:0; background:transparent; color:var(--blue); font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.play-catalog .work-controls { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.play-catalog .work-controls button { min-height:42px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); font-size:12px; }
.play-catalog .work-controls button[aria-pressed="true"] { border-color:var(--blue); background:var(--blue); color:#fff; }
.play-catalog .work-controls button[data-answer="skip"][aria-pressed="true"] { border-color:var(--muted); background:var(--muted); }
.play-catalog .work-controls .answer-label { grid-column:1/-1; min-height:14px; padding:2px 0 0; color:var(--muted); font-size:11px; text-align:left; }
.play-catalog .work-row.answer-keep { background:transparent; }
.play-catalog .work-row.answer-keep::before { content:""; position:absolute; top:21px; bottom:19px; left:-10px; width:3px; background:var(--blue); }
.play-catalog .work-row.answer-keep .work-info h3 strong { color:var(--blue); }
.play-catalog .work-row.answer-keep .answer-label { color:var(--blue); font-weight:700; }
.catalog-version { margin:0; color:var(--muted); font-size:11px; }
.play-aside { position:sticky; top:20px; padding-left:18px; border-left:1px solid var(--line); }
.play-aside h2 { margin:0 0 14px; font-size:16px; }
.aside-count { margin:0; font-size:12px; }
.aside-count b { font-size:21px; }
.aside-skipped { margin:4px 0 14px; color:var(--muted); font-size:11px; }
.selected-list { margin:0 0 15px; padding:0; list-style:none; }
.selected-list li { border-top:1px solid var(--soft); }
.selected-list button { width:100%; padding:9px 0; border:0; background:transparent; color:var(--ink); text-align:left; font-size:12px; }
.selected-list button:hover { color:var(--blue); text-decoration:underline; }
.selected-empty { color:var(--muted); font-size:12px; }
.aside-action { width:100%; margin-top:8px; }
.play-summary { display:none; }
.selected-dialog { width:min(440px,calc(100% - 32px)); max-height:min(75vh,640px); padding:20px; border:1px solid var(--line); color:var(--ink); background:var(--surface); }
.selected-dialog::backdrop { background:rgb(16 38 54 / 55%); }
.selected-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.selected-dialog-head h2 { margin:0; font-size:17px; }
.selected-dialog-head button { min-height:40px; padding:0 12px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); }
.dialog-list { max-height:55vh; overflow:auto; margin-top:12px; }
.compact-controls button { min-height:36px; }
@media (max-width:850px) {
  .candidate-grid,.rejected-list { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:900px) {
  .play-layout { grid-template-columns:minmax(0,1fr) 185px; gap:20px; }
  .play-catalog .work-list { column-gap:16px; }
  .play-catalog .work-row { grid-template-columns:76px minmax(0,1fr); gap:10px; }
  .work-art { width:76px; height:100px; }
  .play-catalog .work-info h3 strong { font-size:18px; }
}
@media (max-width:700px) {
  .candidate-shell { width:calc(100% - 36px); padding-top:25px; padding-bottom:120px; }
  .candidate-back { margin:0 0 14px; }
  .candidate-shell .section-head h1 { font-size:29px; }
  .candidate-shell .section-head p:not(.step) { font-size:12px; }
  .candidate-action-bar { position:fixed; top:auto; right:0; bottom:0; left:0; min-height:70px; margin:0; padding:10px 18px max(10px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); border-bottom:0; }
  .candidate-action-bar strong { font-size:15px; }
  .candidate-action-bar span { font-size:11px; }
  .candidate-action-bar .button { min-width:120px; min-height:44px; padding:0 10px; font-size:12px; }
  .candidate-intro { margin:20px 0 30px; }
  .candidate-card { grid-template-columns:82px minmax(0,1fr); }
  .candidate-card .work-art { width:82px; height:106px; }
  .candidate-card-info h3 strong { font-size:18px; }
  .candidate-remove { min-height:44px; }
  .candidate-rejected summary span { display:block; margin:5px 0 0 22px; }
  .play-shell { width:calc(100% - 36px); padding-top:24px; padding-bottom:104px; }
  .play-shell .section-head { align-items:stretch; }
  .play-shell .section-head h1 { font-size:32px; }
  .play-shell .counter { text-align:left; }
  .play-shell .counter b { display:inline; margin-right:6px; font-size:17px; }
  .play-shell .intro { margin:17px 0 34px; font-size:13px; }
  .play-layout { display:block; }
  .play-catalog .work-list { grid-template-columns:minmax(0,1fr); }
  .play-catalog .work-row { grid-template-columns:96px minmax(0,1fr); gap:10px 15px; padding:18px 0 16px; }
  .work-art { width:96px; height:124px; }
  .play-catalog .work-info h3 { font-size:15px; }
  .play-catalog .work-info h3 strong { font-size:20px; }
  .play-catalog .work-info h3 span { font-size:12px; }
  .play-catalog .work-controls { grid-template-columns:1fr 1fr; }
  .play-catalog .work-controls button { min-height:44px; }
  .play-catalog .work-row.answer-keep::before { left:-9px; top:18px; bottom:16px; }
  .play-aside { display:none; }
  .play-summary { position:fixed; z-index:5; right:0; bottom:0; left:0; display:flex; align-items:center; justify-content:space-between; gap:9px; padding:10px max(18px,calc((100vw - 620px)/2)); padding-bottom:max(10px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--surface); }
  .summary-open { min-height:44px; padding:3px 0; border:0; background:transparent; color:var(--ink); font-size:11px; white-space:nowrap; }
  .summary-open b { font-size:15px; }
  .summary-open span { margin-left:8px; color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
  .play-summary .button { min-height:42px; padding:0 11px; font-size:12px; white-space:nowrap; }
  .candidate-groups { padding-bottom:30px; }
}
@media (max-width:380px) {
  .candidate-shell { width:calc(100% - 28px); }
  .candidate-action-bar { padding-right:14px; padding-left:14px; }
  .candidate-action-bar span { max-width:165px; }
  .rejected-row { align-items:flex-start; flex-direction:column; }
  .rejected-row > div:last-child { width:100%; justify-content:space-between; }
  .brand { font-size:14px; white-space:nowrap; }
  .play-shell { width:calc(100% - 28px); }
  .play-shell .section-head h1 { font-size:29px; }
  .play-catalog .work-row { grid-template-columns:82px minmax(0,1fr); gap:9px 12px; }
  .work-art { width:82px; height:108px; }
  .play-catalog .work-info h3 strong { font-size:18px; }
  .summary-open { font-size:10px; }
  .summary-open b { font-size:14px; }
  .summary-open span { margin-left:4px; }
  .play-summary .button { padding:0 9px; }
}

/* 開始操作を中心にした入口と、作品画像を使う比較・結果。 */
.home-shell .hero { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(40px,6vw,72px); align-items:center; min-height:600px; padding:64px 0; }
.home-shell .hero h1 { font-size:clamp(32px,4.2vw,48px); line-height:1.35; }
@media (max-width:800px) { .home-shell .hero { grid-template-columns:1fr; min-height:0; } }
.home-shell .actions { margin-top:36px; }
.compare-card { min-width:0; align-self:stretch; }
.compare-card .work-art { width:min(100%,160px); height:auto; aspect-ratio:auto; background:transparent; margin-bottom:20px; }
.compare-card .work-image { display:block; width:100%; height:auto; object-fit:contain; }
.compare-card .work-art-fallback { display:block; padding:32px 0; }
.compare-links { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin:0 0 24px; }
.compare-links .product-link { margin:0; }
.compare-card .button { min-height:48px; white-space:normal; overflow-wrap:anywhere; }
.rank-row { grid-template-columns:54px minmax(0,1fr); padding:20px 0; }
.rank-info { min-width:0; overflow-wrap:anywhere; }
.result-ranks { max-width:760px; }
.result-ranks .rank-row { align-items:start; padding:28px 0; }
.result-product { display:block; width:100%; max-width:560px; margin-top:18px; }
.result-product img { display:block; width:100%; height:auto; border-top:3px solid var(--blue); }
.rank-info .result-product span { margin-top:10px; color:var(--blue); }
.result-ranks .rank-row:first-child .rank-no { color:var(--pink-dark); }
.share-preview { max-width:760px; }
@media (max-width:620px) {
  .rank-row { grid-template-columns:34px minmax(0,1fr); gap:10px; }
  .compare-card { padding:18px; }
  .home-shell .hero h1 { font-size:clamp(26px,6vw,32px); }
}

/* Playful Neobrutalism prototype: retain the existing Blue Archive palette. */
:root { --control-border:2px solid var(--ink); --control-radius:16px; --card-radius:20px; }
:focus-visible { outline:3px solid var(--blue); outline-offset:5px; }
.site-header { min-height:76px; border-bottom:2px solid var(--ink); }
.brand { font-weight:800; }
.site-header nav button { min-height:44px; color:var(--ink); }
.site-header nav button:hover { text-decoration:underline; text-underline-offset:4px; }
.site-footer { line-height:1.8; }
.button { min-height:48px; padding:12px 20px; border:var(--control-border); border-radius:var(--control-radius); background:var(--blue-bright); color:var(--ink); font-size:14px; line-height:1.5; transition:transform 120ms ease,box-shadow 120ms ease; }
.button:hover:not(:disabled) { border-color:var(--ink); background:var(--blue-bright); }
.button.secondary { border-color:var(--ink); background:var(--surface); }
.button.secondary:hover:not(:disabled) { border-color:var(--ink); background:var(--selected); }
.button:active:not(:disabled) { transform:translate(2px,2px); }
.shell { max-width:1040px; }
.home-shell { max-width:860px; }
.home-shell .hero { grid-template-columns:1fr; min-height:0; padding:64px 0 88px; gap:40px; }
.home-shell .hero > div:first-child::before { content:""; display:block; width:108px; height:38px; margin-bottom:26px; background:var(--pink-dark); mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 108 38'%3E%3Cg stroke='black' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M4 16v6M14 10v18M24 5v28M34 12v14M44 16v6M54 2v34M64 8v22M74 14v10M84 5v28M94 11v16M104 16v6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.home-shell .hero h1 { font-size:clamp(34px,5vw,58px); font-weight:800; line-height:1.35; letter-spacing:-.045em; }
.home-shell .actions { margin-top:36px; gap:16px; }
.home-shell .actions .button:not(.secondary) { min-width:240px; min-height:60px; justify-content:space-between; gap:32px; font-size:17px; box-shadow:6px 6px 0 var(--ink); }
.home-shell .actions .button:not(.secondary)::after { content:""; width:24px; height:24px; background:var(--ink); mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.home-shell .actions .button:not(.secondary):active { transform:translate(3px,3px); box-shadow:3px 3px 0 var(--ink); }
.affiliate-banner { min-height:0; margin-top:0; padding:24px; border:var(--control-border); border-radius:var(--card-radius); }
.affiliate-banner-card { width:320px; }
.affiliate-banner-card img { width:302px; height:220px; border:1px solid var(--line); border-radius:12px; object-fit:contain; }
.flow-shell { padding-top:36px; }
.section-head { border-bottom-width:2px; padding-bottom:22px; }
.section-head h1,.section-head h2 { font-weight:800; }
.progress { height:6px; border-radius:3px; overflow:hidden; }
.wave-heading { border-bottom-width:2px; }
.wave-heading::before { border-radius:3px; background:var(--pink-dark); }
.play-catalog .work-list { gap:16px; margin-top:18px; }
.play-catalog .work-row { padding:18px; border:var(--control-border); border-radius:var(--card-radius); background:var(--surface); }
.play-catalog .work-row.answer-keep { border-color:var(--blue); background:var(--selected); }
.play-catalog .work-row.answer-keep::before { display:none; }
.work-art { border:var(--control-border); border-radius:12px; background:var(--soft); }
.play-catalog .work-controls button,.candidate-remove,.candidate-add,.compact-controls button,.selected-dialog-head button { min-height:44px; padding:8px 12px; border:var(--control-border); border-radius:12px; font-size:12px; }
.play-catalog .work-controls button[aria-pressed="true"],.compact-controls button[aria-pressed="true"] { border-color:var(--ink); background:var(--blue); color:var(--surface); }
.play-catalog .work-controls button[data-answer="skip"][aria-pressed="true"] { border-color:var(--ink); background:var(--muted); }
.play-catalog .work-controls button:hover:not([aria-pressed="true"]) { background:var(--selected); }
.candidate-add { background:var(--blue-bright); }
.candidate-add:hover { border-color:var(--ink); background:var(--selected); }
.candidate-remove:hover { background:var(--selected); }
.text-action { min-height:44px; }
.play-aside { padding:20px 16px; border:var(--control-border); border-radius:var(--card-radius); background:var(--surface); }
.selected-list button { min-height:44px; }
.play-summary,.candidate-action-bar { border-top:2px solid var(--ink); }
.candidate-action-bar { border-bottom:2px solid var(--ink); }
.candidate-grid { gap:16px; }
.candidate-card { padding:18px; border:var(--control-border); border-radius:var(--card-radius); background:var(--surface); }
.candidate-groups section { margin-top:28px; }
.candidate-groups h2 { border-bottom-width:2px; }
.compare-grid { gap:18px; }
.compare-card { padding:24px; border:var(--control-border); border-radius:var(--card-radius); box-shadow:4px 4px 0 var(--ink); }
.compare-card .button { border:var(--control-border); }
.versus { font-size:16px; }
.result-ranks { border-top:0; }
.result-ranks .rank-row { margin-bottom:20px; padding:24px; border:var(--control-border); border-radius:var(--card-radius); background:var(--surface); }
.rank-no { font-weight:800; }
.result-ranks .rank-row:first-child { box-shadow:4px 4px 0 var(--ink); }
.result-product img { border:2px solid var(--blue); border-radius:12px; }
.share-preview { margin-top:38px; padding:24px; border:2px solid var(--ink); border-radius:20px; background:var(--selected); }
.share-preview h2 { display:flex; align-items:center; gap:14px; margin:0; font-size:clamp(22px,3vw,28px); font-weight:800; }
.share-preview h2::before { content:""; flex:none; width:48px; height:28px; background:var(--pink-dark); mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 28'%3E%3Cg stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M3 12v4M11 7v14M19 3v22M27 9v10M35 5v18M43 11v6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.share-preview .result-actions { gap:12px; margin-top:20px; }
.share-preview .button { min-width:160px; }
.share-preview .button[data-action="x-share"] { min-width:220px; justify-content:space-between; box-shadow:4px 4px 0 var(--ink); }
.share-preview .button[data-action="x-share"]::after { content:""; width:18px; height:18px; background:var(--ink); mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 19 5M8 5h11v11' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.share-preview .button[data-action="x-share"]:active { transform:translate(3px,3px); box-shadow:1px 1px 0 var(--ink); }
#preview-dialog,.teacher-name-dialog,.selected-dialog { border:var(--control-border); border-radius:var(--card-radius); box-shadow:6px 6px 0 var(--ink); }
.teacher-name-dialog input { min-height:48px; border:var(--control-border); border-radius:12px; }
.teacher-name-dialog input:focus { outline:3px solid var(--blue); outline-offset:4px; }
@media (hover:hover) {
  .home-shell .actions .button:not(.secondary):hover { transform:translate(-2px,-2px); box-shadow:8px 8px 0 var(--ink); }
  .home-shell .actions .button:not(.secondary):active { transform:translate(3px,3px); box-shadow:3px 3px 0 var(--ink); }
}
@media (min-width:701px) and (max-width:1000px) {
  .play-catalog .work-list { grid-template-columns:1fr; }
}
@media (max-width:700px) {
  .site-header { min-height:68px; padding-inline:18px; gap:10px; }
  .brand { max-width:calc(100% - 54px); font-size:14px; line-height:1.5; }
  .site-header nav { flex-shrink:0; }
  .home-shell .hero { padding:38px 0 60px; }
  .home-shell .hero h1 { font-size:clamp(27px,6.8vw,42px); }
  .home-shell .hero > div:first-child::before { margin-bottom:22px; }
  .home-shell .actions { margin-top:28px; }
  .home-shell .actions .button { width:100%; }
  .home-shell .actions .button:not(.secondary) { min-width:0; }
  .affiliate-banner { padding:18px; }
  .affiliate-banner-card { width:236px; }
  .affiliate-banner-card img { width:224px; height:166px; }
  .flow-shell { padding-top:28px; }
  .play-catalog .work-row { padding:16px; grid-template-columns:82px minmax(0,1fr); gap:12px; }
  .play-catalog .work-art { width:82px; height:108px; }
  .play-catalog .work-info h3 strong { font-size:20px; }
  .play-summary .button,.candidate-action-bar .button { min-height:46px; }
  .candidate-action-bar { border-bottom:0; gap:10px; }
  .candidate-card { padding:14px; gap:12px; }
  .candidate-card .work-art { width:76px; height:100px; }
  .candidate-card { grid-template-columns:76px minmax(0,1fr); }
  .compare-card { padding:20px; }
  .result-ranks .rank-row { padding:18px 14px; grid-template-columns:26px minmax(0,1fr); gap:10px; }
  .share-preview { margin-top:30px; padding:20px 16px; border-radius:16px; }
  .share-preview h2 { gap:10px; }
  .share-preview h2::before { width:40px; height:24px; }
  .share-preview .result-actions { display:grid; grid-template-columns:1fr; }
  .share-preview .button,.share-preview .button[data-action="x-share"] { width:100%; min-width:0; }
  .teacher-name-dialog { padding:22px 18px; }
}
@media (max-width:700px) {
  .flow-shell:has(.compare-grid) { padding-top:12px; padding-bottom:16px; }
  .flow-shell:has(.compare-grid) > .section-head { padding-bottom:12px; }
  .flow-shell:has(.compare-grid) > .section-head h1 { font-size:26px; }
  .compare-grid { grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr); gap:8px; align-items:stretch; margin:14px 0 12px; }
  .compare-card { min-height:0; padding:12px 10px; border-radius:16px; box-shadow:3px 3px 0 var(--ink); }
  .compare-card .work-art { width:100%; height:76px; aspect-ratio:auto; margin-bottom:8px; overflow:hidden; }
  .compare-card .work-image { width:100%; height:100%; object-fit:contain; }
  .compare-card .work-art-fallback { padding:20px 0; font-size:14px; }
  .compare-card .work-meta { font-size:10px; }
  .compare-card h2 { margin:4px 0 6px; font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
  .compare-card h2 span { font-size:11px; }
  .compare-links { gap:4px 8px; margin:0 0 8px; font-size:11px; }
  .compare-links > * { min-height:32px; }
  .compare-card .button { min-height:44px; padding:7px 5px; border-radius:12px; font-size:12px; line-height:1.25; }
  .versus { align-self:center; font-size:12px; }
  .flow-shell:has(.compare-grid) > .bottom-actions { margin-top:10px; }
  .flow-shell:has(.compare-grid) > .bottom-actions .button { min-height:44px; padding:8px 10px; font-size:12px; }
}
@media (max-width:700px) {
  .flow-shell:has(.result-ranks) { padding-top:16px; padding-bottom:20px; }
  .flow-shell:has(.result-ranks) > .section-head { padding-bottom:10px; }
  .flow-shell:has(.result-ranks) > .section-head h1 { font-size:28px; }
  .result-ranks .rank-row { grid-template-columns:26px minmax(0,1fr); gap:8px; margin-bottom:8px; padding:10px 12px; }
  .result-ranks .rank-info { display:grid; grid-template-columns:minmax(0,1fr) 76px; grid-template-rows:auto auto; column-gap:8px; align-items:start; }
  .result-ranks .rank-info > b { grid-column:1; grid-row:1; font-size:16px; }
  .result-ranks .rank-info > span:not(.rank-no) { grid-column:1; grid-row:2; margin-top:2px; font-size:11px; line-height:1.4; }
  .result-ranks .result-product { grid-column:2; grid-row:1 / span 2; width:76px; margin:0; }
  .result-ranks .result-product img { width:76px; height:58px; object-fit:cover; }
  .result-ranks .rank-info .result-product span { margin-top:3px; font-size:9px; line-height:1.2; }
  .flow-shell:has(.result-ranks) > .share-preview { margin-top:12px; padding:12px 14px; }
  .flow-shell:has(.result-ranks) .share-preview h2 { font-size:19px; }
  .flow-shell:has(.result-ranks) .share-preview h2::before { width:32px; height:20px; }
  .flow-shell:has(.result-ranks) .share-preview .result-actions { grid-template-columns:1fr 1fr; gap:8px; margin-top:10px; }
  .flow-shell:has(.result-ranks) .share-preview .button,
  .flow-shell:has(.result-ranks) .share-preview .button[data-action="x-share"] { min-height:44px; padding:8px; font-size:12px; }
  .flow-shell:has(.result-ranks) > .result-actions { gap:8px; margin-top:10px; }
  .flow-shell:has(.result-ranks) > .result-actions .button { flex:1; min-height:44px; padding:8px; font-size:12px; }
}
@media (max-width:380px) {
  .brand { white-space:normal; }
  .play-catalog .work-row { padding:14px; gap:10px; }
  .play-catalog .work-info h3 strong { font-size:18px; }
  .result-ranks .rank-info { grid-template-columns:minmax(0,1fr) 64px; column-gap:6px; }
  .result-ranks .result-product { width:64px; }
  .result-ranks .result-product img { width:64px; height:52px; }
}
@media (prefers-reduced-motion:reduce) { .button { transition:none; } }

/* One article, using the existing Blue Archive design tokens. */
.article-page { max-width:800px; }
.article-body { padding:clamp(20px,4vw,36px); border:var(--control-border); border-radius:var(--card-radius); background:var(--surface); }
.article-body h1 { margin:0 0 16px; font-size:clamp(26px,4vw,40px); line-height:1.45; letter-spacing:-.025em; overflow-wrap:anywhere; }
.article-body h2 { margin:36px 0 16px; font-size:24px; line-height:1.5; }
.article-body p { margin:20px 0; font-size:16px; line-height:1.95; overflow-wrap:anywhere; }
.article-body .article-date, .article-body .article-note { color:var(--muted); font-size:13px; line-height:1.8; }
.article-body .button { max-width:100%; white-space:normal; }
