/* Unified-site presentation only. Keep the canonical game/state client unchanged. */
.discovery-study .loading,.discovery-study .pack-recovery{position:relative;max-width:680px;margin:40px auto;padding:28px 30px;border:1px solid #d5dccf;border-radius:16px;background:#fafaf4}
.discovery-study .loading h1,.discovery-study .pack-recovery h1{font-size:clamp(27px,3vw,36px);line-height:1.15;margin:14px 0}
.discovery-study .pack-recovery p,.discovery-study .loading p{font-size:15px;line-height:1.6;max-width:55ch}
.discovery-study .pack-recovery .fine{font-size:13px;margin:20px 0 0}
.discovery-study .pack-recovery .hero-actions{margin-top:20px;gap:10px;flex-wrap:wrap}
.pack-recovery-mark{display:grid;place-items:center;width:38px;height:38px;margin-top:18px;background:#e4ecdf;border-radius:50%;color:#355d49;font:24px Georgia,serif}
.study-image-pending{background:linear-gradient(110deg,#e8eddf 20%,#f6f7ef 40%,#e8eddf 60%);background-size:220% 100%;animation:study-shimmer 1.8s ease-in-out infinite;border-radius:8px}
.study-image-retry{min-height:44px;margin:12px auto;display:block;padding:10px 14px;border:1px solid #b9c9b0;background:#f6f8ef;color:#304638;border-radius:8px;font:14px/1.4 system-ui;cursor:pointer}
.discovery-study img[data-study-asset][hidden]{display:none!important}
@keyframes study-shimmer{to{background-position:-220% 0}}
@media(prefers-reduced-motion:reduce){.study-image-pending{animation:none}}
.discovery-study{max-width:1160px;padding:0 28px 28px}
body:has(.discovery-study)>header{padding:12px max(24px,calc((100vw - 1104px)/2));gap:20px}
body:has(.discovery-study)>header .brand-name{font-size:24px}
body:has(.discovery-study)>header nav{font-size:14px;gap:24px}
.discovery-study .store-study-breadcrumb{padding:12px 0;font-size:12px}
.discovery-study .store-study-heading{padding:20px 0;gap:24px;grid-template-columns:1.5fr 1fr}
.discovery-study .store-study-heading h1{font-size:clamp(28px,3vw,38px);margin:8px 0;max-width:28ch}
.discovery-study .store-study-heading p{margin:0;font-size:14px}
.discovery-study .store-study-specimens{padding:0;gap:8px}
.discovery-study .store-study-specimens img{height:82px}
.discovery-study .store-study-specimens figcaption{margin-top:4px}
.discovery-study .store-study-section{padding:18px 0 12px;gap:16px}
.discovery-study .store-study-section h2{font-size:26px}
.discovery-study .store-study-modes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.discovery-study .store-study-modes .mode-card{min-height:0;padding:16px 18px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:6px 12px;align-content:start}
.discovery-study .store-mode-number{grid-column:1;grid-row:1;font-size:15px;line-height:1.6}
.discovery-study .store-study-modes .mode-card h2{grid-column:2;font-size:23px;line-height:1.2;margin:0}
.discovery-study .store-study-modes .mode-card p{grid-column:2;font-size:13px;line-height:1.45;margin:0;max-width:none}
.discovery-study .store-study-modes .mode-hint{grid-column:2;margin:2px 0 0;font-size:11px;line-height:1.4}
.discovery-study .store-study-modes .mode-card{--mode-ink:#295c45;--mode-tint:#eaf1e3;--mode-icon:#d4e4c8;grid-template-columns:40px minmax(0,1fr);border-left:4px solid var(--mode-ink);background:var(--mode-tint)}
.discovery-study .store-study-modes [data-mode=recognition]{--mode-ink:#245f78;--mode-tint:#e9f2f5;--mode-icon:#cee4ed}
.discovery-study .store-study-modes [data-mode=names]{--mode-ink:#914c2c;--mode-tint:#faf0e3;--mode-icon:#f0dabe}
.discovery-study .store-study-modes [data-mode=match]{--mode-ink:#655082;--mode-tint:#f0ecf5;--mode-icon:#e0d5eb}
.discovery-study .store-study-modes .mode-card:hover{background:var(--mode-tint);border-color:var(--mode-ink);box-shadow:0 3px 12px #173e3714;transform:translateY(-1px)}
.discovery-study .store-study-modes .mode-hint{color:var(--mode-ink)}
.discovery-study .store-mode-number{font-size:0;width:40px;height:40px;border-radius:10px;background:var(--mode-icon);display:grid;place-items:center;grid-row:1/4}
.discovery-study .store-mode-number:before{content:'';display:block;width:25px;height:25px;background:var(--mode-ink);mask:var(--activity-icon) center/contain no-repeat}
.discovery-study [data-mode=study]{--activity-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='m15 15 6 6M7 10h6m-3-3v6'/%3E%3C/svg%3E")}
.discovery-study [data-mode=recognition]{--activity-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 2 2 4-4M12 6h9M12 13h9M12 20h9'/%3E%3Crect x='3' y='11' width='4' height='4' rx='1'/%3E%3Crect x='3' y='18' width='4' height='4' rx='1'/%3E%3C/svg%3E")}
.discovery-study [data-mode=names]{--activity-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 4 5 5-11 11-6 1 1-6ZM13 6l5 5M4 16l4 4M13 21h8'/%3E%3C/svg%3E")}
.discovery-study [data-mode=match]{--activity-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='9' height='14' rx='2'/%3E%3Crect x='13' y='7' width='9' height='14' rx='2'/%3E%3Cpath d='m6.5 7 2 3-2 3-2-3Zm11 4 2 3-2 3-2-3Z'/%3E%3C/svg%3E")}
.discovery-study .resume-card{padding:12px 16px;margin:12px 0;gap:12px}
.discovery-study .resume-card p{margin:3px 0 0}
.discovery-study .quiet-details{margin:12px 0}
.discovery-study .daily-entry{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:18px 0;padding:18px;border:1px solid #c7d4bf;border-radius:10px;background:#eaf0e4}
.discovery-study .daily-entry h2{font:27px/1.2 Georgia,serif;margin:5px 0}
.discovery-study .daily-entry p{font-size:14px;line-height:1.5;margin:6px 0}
.discovery-study .play-frame{padding:18px 20px 28px;max-width:none;border:1px solid #ced8c6;border-radius:20px;background:radial-gradient(circle at 92% 4%,#f3dfaa55 0 90px,transparent 91px),linear-gradient(145deg,#fbfaf2,#f4f7ed);box-shadow:0 14px 38px #18362b12}
.discovery-study .round-bar{margin-bottom:12px;gap:10px;padding:10px 12px;border-radius:12px;background:#294b3b;color:#f9f5e8}
.discovery-study .round-bar .round-exit{border-color:#f8f2df66;background:#ffffff12;color:#fffaf0}
.discovery-study .round-bar .score-banner{color:#f3d98f}
.discovery-study .round-mode-switch{padding:10px 12px;border:1px solid #c9d5c1;border-radius:12px;background:#e9efe3}
.discovery-study .round-mode-switch>span{color:#405649;font-weight:650}
.discovery-study .round-mode-switch button{border-color:#bdcbb8;background:#f8f8f0;color:#334a3d}
.discovery-study .round-mode-switch button:nth-child(2){border-color:#b7ccd5;background:#edf5f7;color:#245f78}
.discovery-study .round-mode-switch button:nth-child(3){border-color:#dec5a5;background:#fbf2e7;color:#914c2c}
.discovery-study .round-mode-switch button:nth-child(4){border-color:#cbbdd9;background:#f3eef7;color:#655082}
.discovery-study .round-mode-switch button[aria-pressed=true]{border-color:#294b3b;background:#294b3b;color:#fffaf0;box-shadow:0 3px 10px #1d3c3026}
.discovery-study .progress{height:7px;margin-bottom:18px;background:#dce4d6}
.discovery-study .progress span{background:linear-gradient(90deg,#bd8732,#315d49)}
.discovery-study .question-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px}
.discovery-study .image-panel{padding:12px;min-width:0;border:1px solid #d8d5c6;background:#fffdf7;box-shadow:0 8px 24px #25413312}
.discovery-study .image-panel>img{height:clamp(220px,42vh,340px);object-fit:contain;width:100%;display:block}
.discovery-study .image-panel .credit{margin:8px 0 0;font-size:11px;line-height:1.4}
.discovery-study .round-credits{margin-top:8px;font-size:11px;line-height:1.4;color:#56665e}
.discovery-study .round-credits summary{min-height:28px;display:flex;align-items:center;cursor:pointer;font-weight:650;color:#405649}
.discovery-study .round-credits .credit{padding:0 2px 4px}
.discovery-study .question-panel{padding:4px 0;min-width:0}
.discovery-study .question-panel h2{font-size:clamp(26px,2.5vw,34px);line-height:1.12;margin:8px 0 12px}
.discovery-study .question-panel p{margin-bottom:12px;font-size:14px;line-height:1.5}
.discovery-study .question-panel .answer-label{font:26px/1.15 Georgia,serif;margin:12px 0 5px}
.discovery-study .question-panel .latin{font-size:17px}
.discovery-study .question-panel label{margin:10px 0 5px;font-size:14px}
.discovery-study .question-panel input{padding:9px 12px;font-size:16px;min-height:44px}
.discovery-study .question-panel form>.primary{margin-top:12px}
.discovery-study .paper-checks{gap:4px;margin:12px 0}
.discovery-study .paper-checks label{margin:0;min-height:44px;gap:10px}
.discovery-study .paper-checks input{width:20px;height:20px;min-height:0;padding:0;flex-shrink:0}
.discovery-study .choices{gap:8px}
.discovery-study .choices button{padding:10px 14px;text-align:left}
.discovery-study .paired-reference{margin-top:12px}
.discovery-study .paired-reference img{height:115px;object-fit:contain}
.discovery-study .study-actions{gap:8px;margin:12px 0}
.discovery-study .matching-grid{gap:10px;margin:16px 0}
.discovery-study .match-tile{height:150px;padding:10px}
.discovery-study .match-tile.open img{height:90px;object-fit:contain}
.discovery-study .match-tile strong{font-size:19px}
.discovery-study .result-grid{gap:18px}
.discovery-study .score-card,.discovery-study .card{padding:22px}
@media(max-width:700px){
  body:has(.discovery-study .play-frame)>header{display:none}
  .discovery-study:has(.play-frame){padding:8px 10px 12px}
  .discovery-study .play-frame{padding:8px;border-radius:14px}
  .discovery-study .store-study-heading{grid-template-columns:1fr;padding:16px 0;gap:12px}
  .discovery-study .store-study-specimens{display:none}
  .discovery-study .store-study-section{align-items:flex-start;gap:6px}
  .discovery-study .store-study-section h2{font-size:23px}
  .discovery-study .store-study-modes{grid-template-columns:1fr;gap:8px}
  .discovery-study .store-study-modes .mode-card{padding:13px 14px;gap:4px 8px}
  .discovery-study .store-study-modes .mode-card h2{font-size:21px}
  .discovery-study .question-grid{grid-template-columns:1fr;gap:8px}
  .discovery-study .image-panel{padding:6px}
  .discovery-study .image-panel>img{height:clamp(150px,26svh,210px)}
  .discovery-study .round-credits{margin-top:3px}
  .discovery-study .round-credits summary{min-height:24px}
  .discovery-study .round-bar{margin-bottom:5px;padding:5px 7px;flex-wrap:nowrap;font-size:11px}
  .discovery-study .round-bar .round-exit{min-height:32px;padding:5px 7px;font-size:11px}
  .discovery-study .round-bar .score-banner{display:none}
  .discovery-study .round-mode-switch{padding:4px;margin-bottom:5px}
  .discovery-study .round-mode-switch>span{display:none}
  .discovery-study .round-mode-switch>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%}
  .discovery-study .round-mode-switch button{width:100%;min-height:34px;padding:4px 2px;font-size:10px;line-height:1.15}
  .discovery-study .progress{height:5px;margin-bottom:7px}
  .discovery-study .question-panel{padding:0}
  .discovery-study .question-panel .eyebrow{font-size:11px}
  .discovery-study .question-panel p{margin:4px 0 7px;font-size:13px;line-height:1.35}
  .discovery-study .question-panel>.primary{width:100%;min-height:44px}
  .discovery-study .question-panel h2{font-size:27px}
  body:has(.discovery-study)>header{padding:12px 18px;gap:10px;flex-wrap:wrap}
  body:has(.discovery-study)>header .brand-name{font-size:20px}
  body:has(.discovery-study)>header nav{font-size:13px;gap:18px;flex-wrap:wrap}
}
