/* The production chai-po palette and card faces, with original review badges. */
.study-page{--accent:#f0cf6a;--muted:#b3b3b8;background:#0f0f0f;color:#fdfdfd;font-family:Inter,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif;}
.study-page *{box-sizing:border-box}.study-header{max-width:1440px;margin:auto;background:transparent;border-bottom:1px solid #2a2a2a;padding:24px 28px;gap:12px;position:static}.study-header .brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:27px;letter-spacing:-.8px;color:#fdfdfd}.study-header .brand-mark{width:30px;height:40px;color:#f0cf6a;font-size:inherit}.study-header .brand em{font-style:normal;color:#f0cf6a}.study-header .brand small{display:block;font-size:9px;letter-spacing:1px;color:#b3b3b8;margin-top:3px;font-weight:400}.study-beta{font-size:10px;letter-spacing:1px;color:#f0cf6a;border:1px solid #3a4d5c;padding:4px 7px;border-radius:5px}.study-nav{max-width:1384px;margin:auto;display:flex;gap:28px;border-bottom:1px solid #2a2a2a;padding:0 2px}.study-nav a{padding:16px 0;color:#b3b3b8;text-decoration:none;font-size:13px;font-weight:600}.study-nav a.active{color:#f0cf6a;border-bottom:2px solid #f0cf6a}.study-page .study-main{max-width:min(100%,1820px);padding:28px}.study-page .intro{margin-bottom:18px}.study-page .intro h1{font-size:30px;letter-spacing:-1px}.study-page .eyebrow{color:#f0cf6a;letter-spacing:1.4px;font-size:10px}.study-page .panel{background:#191919;border-color:#2a2a2a;border-radius:12px;box-shadow:none}.study-page .primary,.study-page #newPosition{background:#f0cf6a;color:#1a1a1a;border-color:#f0cf6a;font-weight:700;border-radius:8px}.study-page button{border-radius:7px}.study-page button:focus-visible,.study-page a:focus-visible{outline:2px solid #f0cf6a;outline-offset:3px}.study-page button:disabled{cursor:not-allowed}.study-page .accent,.study-page .scale-label strong{color:#f0cf6a}.study-page .white{color:#fdfdfd}.study-page .playing-card--s{background:#505055}.study-page .playing-card--h{background:#bd160e}.study-page .playing-card--d{background:#283acb}.study-page .playing-card--c{background:#08ac26}.study-page .playing-card--joker{background:#6334a4}.study-page .study-main .playing-card{border-radius:5px}.study-page .session-sidebar button.active{background:#2a2416;border-color:#556f84}.study-page .study-ranking tr.chosen{background:#2a2718}.study-page .metric{background:#242424;border-radius:8px}.public-notice{font-size:12px;line-height:1.8;color:#b3b3b8;border-left:2px solid #526c80;padding:6px 12px;margin:0 0 20px;max-width:1100px}.study-onboarding{display:flex;flex-wrap:wrap;align-items:center;gap:22px;margin:22px 0;color:#d6d6dc;font-size:13px}.study-onboarding>span{display:flex;align-items:center;gap:8px}.study-onboarding b{font-size:10px;color:#f0cf6a;background:#2a2618;border:1px solid #2e3d4a;border-radius:50%;width:26px;height:26px;display:grid;place-items:center}.study-onboarding button{margin-left:auto;font-size:12px;background:#242424}.grade-guide{margin-bottom:22px;padding:0;font-size:12px;color:#b3b3b8}.grade-guide summary{cursor:pointer}.grade-guide[open] summary{margin-bottom:15px}.grade-guide p{max-width:900px}#gradeLegend{display:flex;flex-wrap:wrap;gap:14px 24px}.grade-legend-item{display:flex;align-items:center;gap:7px}.move-badge{display:inline-flex;flex:0 0 48px;width:48px;height:48px;border-radius:50%;align-items:center;justify-content:center;color:#fdfdfd;font-family:Inter,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,sans-serif;font-size:29px;font-weight:900;line-height:1;box-shadow:inset 0 -3px 0 #00000022;border:1px solid #fdfdfdfff12;text-shadow:0 1px 1px #00000018;--icon:27px}.move-badge svg{width:var(--icon);height:var(--icon);display:block}.grade-best{background:#75a642}.grade-excellent{background:#91ad73}.grade-good{background:#65934c}.grade-inaccuracy{background:#e8b538}.grade-blunder-old{background:#e78b43}.grade-blunder{background:#da4b43}.grade-uncertain-retired{background:#688da5}.grade-limited{background:#818263}.grade-legend-item .move-badge{flex-basis:28px;width:28px;height:28px;font-size:17px}.grade-legend-item .move-badge{--icon:16px}.move-assessment{display:flex;gap:15px;align-items:center;padding:20px 0 4px}.move-assessment>div{min-width:0}.move-assessment strong{font-size:22px}.move-assessment p{margin:6px 0 0;max-width:700px}.study-page .study-layout{grid-template-columns:220px minmax(0,1fr)}.study-page .study-workspace{grid-template-columns:minmax(0,1.45fr) minmax(230px,1fr)}.study-page .study-ranking td.accent{font-weight:750}.study-page #studyBoard .board-row{background:#161616;border:1px solid #2a2a2a;border-radius:8px;padding:9px}.study-page #studyBoard .board-row.can-place{background:#2a2618;border-color:#546e83}.study-page .small{font-size:12px}.study-page .muted{color:#b3b3b8}.study-page input,.study-page select,.study-page textarea{background:#242424;border-color:#3a3a3a}.study-page .verification-table{display:block;max-width:100%;overflow-x:auto}.study-page .field-preview{flex-wrap:wrap}.study-page .card-picker{max-width:100%}.study-page .playing-card .card-rank{letter-spacing:-.035em}.study-page footer{color:#676671;font-size:11px;border-color:#2a2a2a}.study-page .session-sidebar h2{font-size:16px}
.study-page .panel-heading{flex-wrap:wrap;gap:10px}.study-page .panel-heading h2{white-space:nowrap;margin:0}.study-page button:not(.playing-card):not(.primary):not(#newPosition){background:#242424;color:#fdfdfd;border-color:#3a3a3a}.study-page .session-sidebar button.active{background:#2a2718;border-color:#556f84}
@media(max-width:1120px){.study-page .study-workspace{grid-template-columns:1fr}.study-page .study-layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:720px){.study-header{padding:16px;gap:8px}.study-header .brand{font-size:23px;gap:8px}.study-header .brand-mark{width:25px;height:34px}.study-header .brand small{font-size:7px;letter-spacing:.5px}.study-beta{font-size:8px;padding:3px 5px}.study-nav{margin:0 16px;gap:25px}.study-page .study-main{padding:20px 14px}.study-page .intro h1{font-size:26px}.study-page .intro p{font-size:12px;line-height:1.7}.study-page .intro{gap:12px}.study-page .study-layout{display:block}.study-onboarding{gap:10px 15px;font-size:11px}.study-onboarding button{margin-left:0}.study-page .session-sidebar{position:static}.move-assessment strong{font-size:19px}.study-page #studyBoard .board-row{padding:8px 5px}.study-page .study-main .board-row .playing-card,.study-page .study-main .slot{width:36px;height:51px;font-size:29px;min-width:0}.study-page .study-main .row-label{flex-basis:30px;min-width:30px}.study-page .study-main .row-cards{gap:3px}.study-page .language select{width:78px}.study-page .study-main .panel{padding:14px}.study-page .study-main .board-row{gap:4px}.public-notice{font-size:11px}.study-page .study-ranking .move-groups{gap:3px}.study-page .study-ranking .move-group{gap:2px}.study-page .study-ranking td,.study-page .study-ranking th{font-size:11px}.study-page .study-ranking .playing-card{width:21px;height:29px;font-size:19px}.study-page .study-main .board-row.can-place{cursor:pointer}}
@media(max-width:360px){.study-header .brand small{display:none}.study-header .brand{font-size:21px}.study-page .study-main{padding:16px 10px}.study-page .study-main .panel{padding:11px}.study-page .study-main .board-row .playing-card,.study-page .study-main .slot{width:32px;height:46px;font-size:27px}}

.study-page .opponent-study .board-row{background:#161616;border:1px solid #2a2a2a;border-radius:7px;padding:8px}.study-page .study-workspace>aside{align-self:start}
/* Japanese copy uses a heavier gothic family; card faces retain their own sizing. */
.study-page{font-family:"Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;font-weight:700}
.study-page button,.study-page input,.study-page select,.study-page textarea{font-family:inherit}
.study-page .study-nav{flex-wrap:wrap}
.stack-presets{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0 4px}
.stack-presets button{min-width:52px;padding:6px 10px;border-radius:6px;border:1px solid #3a3a3a;background:#1c1c1c;color:#ededed;font:inherit;cursor:pointer}
.stack-presets button:hover:not(:disabled){border-color:#f0cf6a;color:#f0cf6a}
.stack-presets button:disabled{opacity:.5;cursor:not-allowed}
.stack-presets-note{color:#b3b3b8;font-size:11px}

/* Pricing panel. Colours follow the existing tokens: #f0cf6a accent, #1c1c1c surface. */
.study-page .billing{margin:16px 0;padding:16px 18px;border:1px solid #3a3a3a;border-radius:10px;background:#141418}
.study-page .billing-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.study-page .billing-head h2{margin:0;font-size:15px}
.study-page .billing-current{margin:6px 0 0;font-size:12px}
.study-page .billing-early{margin:8px 0 0;font-size:12px;color:#f0cf6a}
.study-page .billing-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:14px}
.study-page .billing-plan{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid #3a3a3a;border-radius:8px;background:#1c1c1c}
.study-page .billing-plan.current{border-color:#f0cf6a}
.study-page .billing-plan .price{font-size:20px;font-weight:700;color:#f0cf6a}
.study-page .billing-plan .was{color:#b3b3b8;text-decoration:line-through;font-size:12px;margin-left:6px}
.study-page .billing-plan .limits{margin:0;padding-left:16px;color:#b3b3b8;font-size:11px;line-height:1.5}
.study-page .billing-plan button{margin-top:auto;padding:8px 12px;border-radius:6px;border:1px solid #3a3a3a;background:#26262e;color:#ededed;font:inherit;cursor:pointer}
.study-page .billing-plan button.primary{background:#f0cf6a;border-color:#f0cf6a;color:#1a1a1f;font-weight:700}
.study-page .billing-plan button:hover:not(:disabled){filter:brightness(1.1)}
.study-page .billing-plan button:disabled{opacity:.6;cursor:not-allowed}
.study-page .billing-error{margin:10px 0 0;color:#ff8f8f;font-size:12px}
.study-page .billing-error:empty{display:none}

/* Free-trial offer. Shares the mint accent and the card surface used elsewhere. */
.study-page .trial{margin:14px 0 0;padding:14px 16px;border:1px solid #847137;border-radius:9px;background:#2a2716}
.study-page .trial-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;flex-wrap:wrap}
.study-page .trial-head strong{font-size:14px;color:#f0cf6a}
.study-page .trial-clock{font-family:inherit;font-variant-numeric:tabular-nums;font-size:22px;font-weight:700;color:#f0cf6a;letter-spacing:1px}
.study-page .trial-body{margin:8px 0 0;font-size:12px;color:#ded6c8;line-height:1.7}
.study-page .trial-body b{color:#f0cf6a}
.study-page .trial-button{margin-top:12px;padding:9px 14px;border-radius:7px;border:1px solid #f0cf6a;background:#f0cf6a;color:#1a1a1a;font:inherit;font-weight:700;cursor:pointer}
.study-page .trial-button:hover:not(:disabled){filter:brightness(1.06)}
.study-page .trial-button:disabled{opacity:.6;cursor:not-allowed}
.study-page .trial.running{border-color:#f0cf6a}
.study-page .trial.expired{border-color:#5a4a4a;background:#221b1b}

/* Simplified layout: the board comes first, the commercial and advanced panels fold away. */
.study-page .plan-section,.study-page .advanced-settings{
  margin:14px 0;border:1px solid #2a2a2a;border-radius:10px;background:#161616}
.study-page .plan-section>summary,.study-page .advanced-settings>summary{
  cursor:pointer;padding:11px 15px;font-size:13px;font-weight:600;color:#b3b3b8;list-style:none}
.study-page .plan-section>summary::-webkit-details-marker,
.study-page .advanced-settings>summary::-webkit-details-marker{display:none}
.study-page .plan-section>summary::before,.study-page .advanced-settings>summary::before{
  content:"＋";color:#f0cf6a;margin-right:9px;font-weight:700}
.study-page .plan-section[open]>summary::before,
.study-page .advanced-settings[open]>summary::before{content:"−"}
.study-page .plan-section>summary:hover,.study-page .advanced-settings>summary:hover{color:#fdfdfd}
.study-page .plan-section>*:not(summary),.study-page .advanced-settings>*:not(summary){
  margin-left:15px;margin-right:15px}
.study-page .plan-section .billing,.study-page .plan-section .billing-plans{margin-bottom:14px}
.study-page .advanced-settings .table-status{margin-bottom:14px}
/* The hero is a single heading now. */
.study-page .intro h1{font-size:26px;margin:0}
.study-page .intro{margin-bottom:14px}
.study-page .public-notice{margin:0 0 14px;max-width:none;line-height:1.5}

/* Card ranks: bold, matching the reference artwork. The UI sans is kept for the rest of
   the interface; only the rank glyphs switch face and weight. */
.playing-card .card-rank,
.card-rank {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-weight: 700;
}

/* Card ranks: bold, matching the reference artwork. The UI sans is kept for the rest of
   the interface; only the rank glyphs switch face and weight. */
.playing-card .card-rank,
.card-rank {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-weight: 700;
}

/* Card ranks: bold, matching the reference artwork. The UI sans is kept for the rest of
   the interface; only the rank glyphs switch face and weight. */
.playing-card .card-rank,
.card-rank {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  font-weight: 700;
}
