:root { color-scheme:light; --ink:#302d2b; --secondary:#7b747b; --aubergine:#6a507a; --grape:#9067a8; --line:#e5dfdc; --cream:#f7f4ee; --paper:#fffdf9; --good:#347e60; --bad:#b26459; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
*,*::before,*::after{box-sizing:border-box} html{-webkit-text-size-adjust:100%} body{margin:0;min-width:300px;background:var(--cream);color:var(--ink)} [hidden]{display:none!important} button,input,select{font:inherit} button{cursor:pointer} button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #b9a2ce;outline-offset:2px}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app{width:min(1220px,100%);margin:auto;min-height:100vh;padding:0 28px 16px;display:flex;flex-direction:column}.topbar{height:78px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit;min-width:0}.brand-mark{font-family:Georgia,serif;font-size:32px;line-height:1;display:grid;place-items:center;border:1.5px solid #9275a1;border-radius:50%;width:43px;height:43px;color:var(--aubergine)}.brand-name{font-size:11px;font-weight:750;letter-spacing:.15em;white-space:nowrap}.main-nav{margin:auto;display:flex;gap:5px;background:#ece7e1;border-radius:99px;padding:4px}.nav-link{border:0;background:transparent;padding:10px 25px;border-radius:99px;color:#817780;font-weight:670;font-size:14px;transition:background .18s}.nav-link.selected{color:#403548;background:#fff;box-shadow:0 1px 5px #493c4311}.nav-count{font-size:10px;color:#887888;margin-left:3px}.icon-button,.close-icon{border:1px solid var(--line);color:#6f6074;background:var(--paper);display:grid;place-items:center}.icon-button{width:42px;height:42px;border-radius:50%}.icon-button svg{width:21px;height:21px}.icon-button:hover,.close-icon:hover{background:#f2ebf4}.topbar .settings-trigger{margin-left:0}main{flex:1}.game-tools{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:16px 2px 12px}.mode-switch{display:flex;gap:3px;background:#eae5e1;border-radius:8px;padding:3px}.mode-button{background:transparent;border:0;border-radius:6px;padding:9px 24px;color:#807783;font-size:13px;font-weight:680}.mode-button.active{background:#fff;color:#5b4770;box-shadow:0 1px 4px #6c59621c}.game-totals{display:flex;gap:21px;align-items:center;color:#756b79;font-size:13px;font-variant-numeric:tabular-nums}.game-totals span span:first-child{font-size:16px;margin-right:3px}.game-totals strong{font-size:15px;font-weight:740}.total-good span{color:var(--good)}.total-bad span{color:var(--bad)}.total-streak span{color:#b79342}.playfield{height:clamp(320px,51vh,570px);position:relative;overflow:hidden;isolation:isolate;border:1px solid #ded7d2;border-radius:14px;background:radial-gradient(ellipse at 50% 39%,#fffdfb 0%,#fcf9f5 52%,#eee7e3 100%);box-shadow:inset 0 0 38px #b4a19c0a}.field-art{position:absolute;inset:0;pointer-events:none;overflow:hidden}.field-ring{position:absolute;display:block;border:1px solid #d7ced41d;border-radius:50%;width:min(72vw,690px);height:min(72vw,690px);top:36%;left:50%;transform:translate(-50%,-50%)}.ring-two{width:min(53vw,510px);height:min(53vw,510px);border-color:#ad91b315}.field-axis{position:absolute;left:50%;top:0;bottom:0;border-left:1px dashed #cfbccc28}.field-tile{position:absolute;bottom:-62px;height:220px;width:210px;border:2px solid #9f8da012;transform:rotate(45deg)}.tile-left{left:-140px}.tile-right{right:-140px}.field-actions{position:absolute;z-index:6;left:17px;right:17px;top:15px;display:flex;justify-content:space-between;gap:10px}.field-pill{border:1px solid #e7dfde;border-radius:99px;background:#fffdfaee;box-shadow:0 4px 16px #3c33330b;color:#645b64;padding:9px 16px;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:690}.field-pill:hover{background:white;color:var(--aubergine)}.field-pill svg{width:16px;height:16px}.clue-btn{color:#79518b}.clue-btn:disabled{opacity:.55;cursor:default}.sparkle{font-size:20px;line-height:12px}.object-track{position:absolute;left:0;top:0;width:100%;height:clamp(190px,33vh,330px);display:flex;justify-content:center;align-items:center;pointer-events:none;will-change:transform}.object-track img{max-width:min(75%,490px);max-height:100%;object-fit:contain;filter:drop-shadow(0 17px 15px #3c273332)}.clues{position:absolute;z-index:5;bottom:18px;left:14px;right:14px;display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:center;pointer-events:none}.clue{background:#fffdf9eb;color:#705581;font-size:12px;letter-spacing:.01em;border:1px solid #ded0e2;padding:8px 13px;border-radius:99px;box-shadow:0 3px 14px #77647412;animation:clue-in .25s ease-out both}.result-panel{position:absolute;left:50%;top:52%;z-index:8;transform:translate(-50%,-50%);width:min(86%,450px);padding:17px 20px;border-radius:18px;text-align:center;background:#fffffff5;box-shadow:0 24px 55px #493d4c35;display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none}.result-panel.correct{border:1px solid #79b59d}.result-panel.wrong{border:1px solid #d9a59d}.result-panel.missed{border:1px solid #c6bac9}.result-panel #result-symbol{font-size:34px;font-weight:800;line-height:1.15;color:var(--good)}.result-panel.wrong #result-symbol{color:var(--bad)}.result-panel.missed #result-symbol{color:#756b7f}.result-panel #result-object{font-size:16px;font-weight:720}.result-panel #result-era{font-size:12px;color:#817781}.pause-shade{position:absolute;inset:0;z-index:7;background:#f9f6f1ad;backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#5a4864;font-size:18px;font-weight:700}.pause-symbol{font-size:32px;line-height:1}.reward-burst{position:absolute;left:50%;top:46%;width:1px;height:1px;z-index:7;pointer-events:none}.confetti{position:absolute;display:block;width:10px;height:10px;border-radius:2px;background:var(--c,#d09cd5);transform:translate(0,0) rotate(0);animation:confetti-fly 950ms cubic-bezier(.14,.65,.29,1) forwards}.confetti.star{width:17px;height:17px;clip-path:polygon(50% 0,60% 36%,100% 50%,62% 63%,50% 100%,38% 63%,0 50%,40% 37%)}.answers{margin:16px 0 0}.answer-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.answer-grid.tags-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.answer-button{min-width:0;min-height:67px;border:1px solid #ddd5db;border-radius:11px;color:#4c3d52;background:#fffefa;padding:10px 9px;font-weight:720;font-size:13px;line-height:1.25;box-shadow:0 3px 9px #77667608;transition:transform .15s,border-color .15s,background .15s}.answer-button:hover:not(:disabled){transform:translateY(-3px);border-color:#ae91c0;background:#fbf5ff}.answer-button:active:not(:disabled){transform:translateY(0)}.answer-button:disabled{cursor:default;opacity:.64}.answer-button.correct{background:#eaf5ef;border-color:#5a9c7e;color:#266746;opacity:1}.answer-button.incorrect{background:#f9eae6;border-color:#cb897f;color:#a34839;opacity:1}.quiet-actions{display:flex;justify-content:center;align-items:center;padding:11px 0 0}.quiet-actions button{border:0;background:transparent;color:#8a7a8e;font-weight:660;font-size:12px;padding:5px 12px}.quiet-actions button:hover{color:#523f5f}.footer{font-size:10px;color:#9a9291;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;padding:22px 2px 6px}.footer a{color:inherit}.study-screen{padding-top:25px}.study-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:.18em;color:#8c718e;font-weight:740}.study-head h1{font-size:clamp(28px,4vw,45px);letter-spacing:-.045em;line-height:1.03;margin:7px 0 0;font-weight:650}.dot{color:#936eb1}.study-count{font-size:12px;color:#968b97}.study-tools{display:flex;justify-content:space-between;gap:12px;margin-bottom:18px}.search-wrap{position:relative;flex:1}.search-wrap svg{width:19px;height:19px;position:absolute;top:12px;left:14px;fill:none;stroke:#a89cab;stroke-width:1.6}.search-wrap input,.select-wrap select{border:1px solid #ddd5dc;border-radius:10px;padding:12px;background:#fffefb;color:#524757;min-height:44px}.search-wrap input{width:100%;padding-left:42px}.select-wrap select{width:180px}.study-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.study-card{display:flex;flex-direction:column;border:1px solid #e2dadd;border-radius:12px;background:#fffefa;overflow:hidden;text-align:left;color:inherit;transition:transform .15s,box-shadow .15s}.study-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #52405218}.study-card-image{width:100%;height:190px;display:flex;justify-content:center;align-items:center;background:radial-gradient(circle,#fff 10%,#f6f1ef 95%);padding:19px}.study-card-image img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 8px #49404529)}.study-card-info{display:flex;flex-direction:column;gap:6px;padding:13px 14px 15px;min-height:92px}.study-card-info strong{font-weight:690;font-size:13px;line-height:1.25}.study-card-info small{font-size:11px;color:#8d7d8b}.study-notes{font-size:12px;color:#938695;margin:20px 0 5px}.empty-state{grid-column:1/-1;padding:50px 10px;text-align:center;color:#928594}.modal{border:1px solid #e4dadd;box-shadow:0 25px 90px #24192666;border-radius:17px;background:#fffdfa;color:var(--ink);padding:22px;width:min(calc(100vw - 24px),475px);max-height:min(87vh,850px);overflow:auto}.modal::backdrop{background:#28212e88;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:16px}.modal-head h2{font-size:24px;letter-spacing:-.035em;margin:0}.close-icon{width:34px;height:34px;border-radius:50%;font-size:25px;line-height:1;font-weight:300}.setting-block{border-top:1px solid #eee8e7;padding:17px 0}.setting-label{font-size:13px;font-weight:740;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#51434e}.setting-label output{font-size:12px;color:#978598;font-weight:500}.speed-range{margin-top:18px;width:100%;accent-color:#86649b}.slider-ends{display:flex;justify-content:space-between;color:#a79ba8;font-size:11px}.settings-buttons{display:flex;gap:8px;margin-top:12px}.settings-buttons button{border:1px solid #ded3dd;border-radius:8px;background:#faf7fc;padding:10px 14px;font-size:12px;font-weight:690;color:#654b74}.settings-buttons button:hover{background:#eee5f2}.help-text h3{font-size:13px;margin:0 0 7px}.help-text p{font-size:12px;line-height:1.6;margin:0 0 13px;color:#786f79}.art-dialog{width:min(calc(100vw - 24px),560px)}.detail-image-frame{display:grid;place-items:center;height:min(33vh,285px);background:radial-gradient(circle,#fff 5%,#f3edeb);border-radius:12px;margin-bottom:18px}.detail-image-frame img{max-height:88%;max-width:80%;object-fit:contain;filter:drop-shadow(0 10px 11px #3a273522)}.art-dialog h2{font-size:23px;line-height:1.18;letter-spacing:-.025em;margin:0 0 6px}.detail-era{font-size:13px;color:#886d91;margin:0 0 14px}.detail-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.detail-tags .tag{border:1px solid #e7dfe7;border-radius:99px;padding:6px 9px;color:#725b7b;font-size:11px;background:#fbf8fd}.detail-tags .verified-tag{background:#eff5f2;color:#537763;border-color:#d4e5dc}.detail-notes{font-size:11px;color:#958a94;line-height:1.5}.detail-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.detail-links a{font-size:12px;font-weight:720;background:#725580;color:white;border-radius:8px;padding:11px 15px;text-decoration:none}.detail-links a.secondary{background:#f1eaf3;color:#61486e}.detail-links a:hover{filter:brightness(1.07)}
@keyframes confetti-fly{0%{opacity:1;transform:translate(0,0) rotate(0) scale(.6)}75%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--spin)) scale(.35)}}@keyframes clue-in{from{opacity:0;transform:translateY(9px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:950px){.study-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.answer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.brand-name{display:none}}
@media(max-width:650px){.app{padding:0 11px 12px}.topbar{height:62px;gap:9px}.brand-mark{width:35px;height:35px;font-size:26px}.main-nav{margin:auto}.nav-link{padding:9px 14px;font-size:12px}.nav-count{font-size:9px}.icon-button{width:35px;height:35px}.game-tools{padding:10px 1px 9px}.mode-button{padding:8px 15px;font-size:12px}.game-totals{gap:11px}.game-totals strong{font-size:13px}.game-totals span span:first-child{font-size:13px}.playfield{height:clamp(240px,42svh,410px);border-radius:11px}.object-track{height:clamp(155px,24svh,235px)}.object-track img{max-width:80%}.field-actions{top:10px;left:10px;right:10px}.field-pill{padding:8px 11px;font-size:11px}.clue{padding:6px 10px;font-size:10px}.clues{bottom:10px;gap:5px}.answer-grid,.answer-grid.tags-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.answer-button{min-height:48px;padding:9px 5px;font-size:12px}.study-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.study-card-image{height:155px;padding:10px}.study-card-info{padding:9px 10px 11px;min-height:89px}.study-card-info strong{font-size:12px}.study-card-info small{font-size:10px}.study-head{margin-bottom:16px}.study-tools{gap:6px}.select-wrap select{width:117px;font-size:11px;padding:8px}.search-wrap input{font-size:12px;padding-left:37px}.footer{font-size:9px;justify-content:center;padding-top:10px}.result-panel{padding:12px 13px}.result-panel #result-object{font-size:14px}.result-panel #result-era{font-size:11px}}
@media(max-width:360px){.study-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.study-card-image{height:125px}.nav-link{padding:7px 11px}.game-totals{gap:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* V3: cohesive arcade / pinball-inspired visual update, retaining V2 controls. */
:root {
  color-scheme: dark;
  --ink: #f7f3ff;--secondary:#bbb0d8;--aubergine:#ab81f1;--grape:#c8a3fb;
  --line:#544475;--cream:#100e23;--paper:#292346;--good:#a7ffcd;--bad:#ffb1bc;
}
html,body{min-height:100%;background:radial-gradient(ellipse 70vw 80vh at 50% -26%,#4e336d 0,#211934 51%,#0e0d22 100%);color:var(--ink)}
.app{width:min(1370px,100%);padding:0 22px 12px;min-height:100svh}
.topbar{height:73px;border:0;gap:20px}
.brand{color:#f8efff}
.brand-mark{color:#ffe6ac;width:42px;height:42px;border:0;box-shadow:0 0 0 1px #9f7cbd6c,inset 0 0 16px #c1a2ff35;background:linear-gradient(135deg,#42355f,#241b3e)}
.brand-name{font-size:10px;letter-spacing:.21em;color:#d2c7e0}
.main-nav{background:#4234589c;border-radius:50px;padding:4px;box-shadow:inset 0 1px 0 #a87cb443}
.nav-link{color:#beb1d4;border:0;border-radius:50px;font-size:13px;padding:10px 28px;font-weight:730}
.nav-link.selected{color:#2a2044;background:linear-gradient(145deg,#f5e8ff,#c6aae8);box-shadow:0 5px 18px #09061847}
.nav-count{color:inherit;opacity:.7}
.icon-button,.close-icon{border:0;color:#e8d5ff;background:linear-gradient(145deg,#574270,#372b53);box-shadow:inset 0 1px 0 #ffffff25,0 5px 14px #08051738}
.icon-button:hover,.close-icon:hover{background:#6b4b94;color:#fff}
.play-screen{background:radial-gradient(ellipse at 51% 10%,#37264fb7,#16132b 70%);padding:10px 12px 9px;border-radius:27px;overflow:hidden;box-shadow:0 25px 75px #05031454,inset 0 1px 0 #b096ed30;position:relative;isolation:isolate}
.play-screen:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,#bca0fb08 50%,transparent);pointer-events:none;z-index:-1}
.game-tools{padding:1px 4px 11px;gap:12px}
.mode-switch{border:0;background:#3c2f5d;padding:3px;gap:3px;border-radius:40px;box-shadow:inset 0 2px 7px #0b071c60}
.mode-button{border:0;background:transparent;border-radius:40px;padding:9px 20px;color:#d1c2df;font-size:13px;min-width:73px;transition:background .2s,color .2s}
.mode-button.active{background:linear-gradient(140deg,#f3d7ff,#c1a0ee);color:#302044;box-shadow:0 3px 10px #0003}
.game-totals{border:0;border-radius:40px;padding:6px 17px;min-width:76px;justify-content:center;gap:9px;background:linear-gradient(135deg,#5c407c,#332553);color:#ffeed2;box-shadow:inset 0 1px 0 #ffcfff30,0 5px 13px #03010b35;font-variant-numeric:tabular-nums}
.game-totals strong{font-size:20px;color:#fff8e0;font-weight:820;min-width:1ch}
.game-totals .score-star{font-size:22px;color:#ffdc88;text-shadow:0 0 14px #f1b847b5;line-height:1}
.playfield{height:clamp(370px,56vh,670px);border:0;border-radius:19px 19px 7px 7px;background:radial-gradient(ellipse at 50% 35%,#473965 0%,#211b40 53%,#15152e 88%,#10142b 100%);box-shadow:inset 0 0 85px #040513bd,0 4px 18px #0a061b51}
.parallax-backdrop{position:absolute;inset:-25% -13%;z-index:0;overflow:hidden;pointer-events:none;opacity:.72;mix-blend-mode:screen;mask-image:radial-gradient(ellipse 65% 58% at 50% 47%,black 20%,transparent 91%)}
.parallax-backdrop img{display:block;width:100%;height:100%;object-fit:contain;filter:blur(36px) saturate(1.42) brightness(1.16);opacity:.82;will-change:transform;transform:scale(1.68)}
.field-vignette{position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,transparent 12%,#17132944 67%,#111027bf 100%),linear-gradient(to bottom,#18112a50,transparent 18%,transparent 72%,#1015278c 100%)}
.field-art{z-index:2;opacity:.75}
.field-ring{border:1px solid #c9a5ee17;width:min(70vw,640px);height:min(70vw,640px)}
.ring-two{width:min(49vw,465px);height:min(49vw,465px);border-color:#ddc3ff15}
.field-axis{border-left:1px dashed #ad83ce22}
.field-tile{border-color:#cfaef817}
.field-actions{top:12px;left:14px;right:14px;z-index:7}
.field-pill{background:#241c39cd;border:0;box-shadow:inset 0 1px 0 #dec2ff3c,0 8px 20px #09051b50;color:#eee6f6;font-weight:780;font-size:12px;padding:10px 19px;backdrop-filter:blur(10px)}
.field-pill:hover{color:#fff;background:#49365d}
.clue-btn{color:#ffdfa2;background:#403057cf;box-shadow:inset 0 1px 0 #f5d9ff47,0 7px 17px #0b06204a}
.clue-btn:disabled{opacity:.5}
.sparkle{color:#ffdf8c;font-size:22px}
.object-track{z-index:4;pointer-events:auto;cursor:pointer;height:clamp(280px,46vh,510px);touch-action:manipulation;outline-offset:-8px}
.object-track img{max-width:min(94%,790px);max-height:100%;width:auto;height:auto;object-fit:contain;pointer-events:none;filter:drop-shadow(0 20px 20px #090618a3) drop-shadow(0 0 19px #a792bc36);user-select:none}
.object-track img.wide-artwork{max-width:96%;max-height:95%;filter:drop-shadow(0 17px 16px #0b0619ad)}
.clues{z-index:6;bottom:13px;gap:7px}
.clue{background:#382a57d9;color:#f3e4ff;border:0;backdrop-filter:blur(12px);font-size:12px;padding:9px 14px;box-shadow:inset 0 1px 0 #fff2,0 5px 11px #0005}
.pause-shade{z-index:6;pointer-events:none;background:#11102974;backdrop-filter:blur(7px);color:#fff0b4;font-size:13px;gap:8px;text-align:center;padding:15px}
.pause-symbol{font-size:55px;color:#ffe5a3;text-shadow:0 0 24px #ffd46e66}
.result-panel{top:49%;width:min(85%,430px);z-index:8;background:#201735e6;backdrop-filter:blur(15px);border:0!important;border-radius:20px;box-shadow:0 20px 60px #080216a8,0 0 50px #b8a0ee54;color:#fffaf9;gap:8px;padding:19px 22px;min-height:130px;justify-content:center}
.result-panel #result-symbol{font-size:64px;line-height:.9;color:#ffdd86;text-shadow:0 0 24px #ffd36dc4}
.result-panel.wrong #result-symbol{color:#ffc5ce;text-shadow:0 0 22px #cc617b99}
.result-panel.missed #result-symbol{color:#d0c2e0}
.result-panel #result-object{font-size:19px;color:white;line-height:1.2}
.result-panel #result-era{font-size:12px;color:#d9c6f1}
.reward-burst{z-index:9;left:50%;top:45%}
.confetti{width:var(--size,25px);height:var(--size,25px);border-radius:3px;background:var(--c,#f7d790);filter:drop-shadow(0 0 13px var(--c,#f7d790));animation:confetti-fly 1280ms cubic-bezier(.17,.66,.2,1) forwards}
.confetti.star{width:var(--size,25px);height:var(--size,25px);clip-path:polygon(50% 0,62% 30%,94% 7%,78% 40%,100% 51%,78% 61%,93% 92%,60% 75%,50% 100%,40% 74%,7% 93%,22% 60%,0 50%,22% 40%,7% 7%,39% 30%)}
.confetti.diamond{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.confetti.orb{border-radius:50%}
.reward-ring{position:absolute;left:0;top:0;width:190px;height:190px;border-radius:50%;border:9px solid #ffe6ab;box-shadow:0 0 45px #ffe48ca8,inset 0 0 40px #ffe6abab;transform:translate(-50%,-50%) scale(.1);animation:reward-wave .9s cubic-bezier(.17,.5,.28,1) forwards}
.playfield.winning::after{content:"";position:absolute;inset:0;z-index:3;background:radial-gradient(circle at 50% 50%,#ffe8a438,transparent 60%);pointer-events:none;animation:field-glow 950ms ease-out both}
.answers{margin:0;background:#1c1734;padding:11px 10px 5px;border-radius:0 0 17px 17px}
.answer-grid{gap:7px}
.answer-button{border:0;min-height:69px;border-radius:11px;color:#f7eeff;background:linear-gradient(180deg,#57406e 0%,#3e315e 53%,#30274b 100%);font-size:13px;line-height:1.24;font-weight:800;box-shadow:inset 0 2px 0 #dfc9ff40,0 3px 0 #130e2b,0 7px 12px #0004;padding:10px 7px;transition:transform .12s,background .15s,box-shadow .15s}
.answer-button:hover:not(:disabled){transform:translateY(-3px);background:linear-gradient(#8562ab,#543c7c);box-shadow:inset 0 2px 0 #e7d3ff88,0 5px 0 #1c1335,0 0 22px #b486ea6b}
.answer-button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 0 #e7d3ff66,0 1px 0 #180c2f}
.answer-button:disabled{opacity:.5}
.answer-button.correct{opacity:1;background:linear-gradient(#76d3ab,#267653);color:#fff;box-shadow:inset 0 2px 0 #e5ffea77,0 3px 0 #0d402b,0 0 24px #5fffaa80}
.answer-button.incorrect{opacity:1;background:linear-gradient(#d48096,#8e405e);color:white;box-shadow:0 0 12px #f46d9773}
.quiet-actions{padding:3px 0 0;background:#1c1734;border-radius:0 0 16px 16px}
.quiet-actions button{color:#b7abc7;font-size:11px;padding:6px 15px;font-weight:650}
.quiet-actions button:hover{color:#fff1bd}
.footer{color:#9985b3;font-size:10px;padding:13px 6px 5px}
.footer a{color:#c9bbe4}
/* Study inherits the cabinet palette and explicitly constrains all portraits. */
.study-screen{padding:24px 6px 18px}
.study-head h1{color:#fbf4ff}
.eyebrow{color:#d6aefa}
.dot{color:#ffdb93}
.study-count,.study-notes{color:#a99cbe}
.search-wrap input,.select-wrap select{background:#2b2144;color:#f6ecff;border:0;border-radius:12px;box-shadow:inset 0 1px 0 #bda0d54a;outline-color:#ba90ff;min-height:45px}
.search-wrap input::placeholder{color:#b6a3d0}
.search-wrap svg{stroke:#c8b2e7}
.select-wrap{position:relative;min-width:0}
.select-wrap select{appearance:none;-webkit-appearance:none;padding-right:36px;background:#2b2144;width:195px;cursor:pointer}
.select-wrap:after{content:"⌄";position:absolute;right:13px;top:7px;color:#efdcff;font-size:24px;line-height:1;pointer-events:none}
.study-grid{gap:13px}
.study-card{min-width:0;overflow:hidden;background:#29203d;border:0;border-radius:15px;color:#f9f0ff;box-shadow:inset 0 1px 0 #e3b9f51f,0 5px 20px #05031835}
.study-card:hover{transform:translateY(-4px);box-shadow:0 11px 31px #05031880,0 0 0 2px #9a6fb755}
.study-card-image{display:grid;place-items:center;overflow:hidden;min-width:0;min-height:0;width:100%;height:auto;aspect-ratio:1.36;max-height:240px;padding:17px;background:radial-gradient(ellipse at 50% 50%,#534269 0%,#2d2445 72%,#241d36 100%)}
.study-card-image img{display:block;min-width:0;min-height:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 10px 12px #07031291)}
.study-card-info{min-width:0;padding:12px 14px 15px;min-height:85px}
.study-card-info strong{color:#fff3ff}
.study-card-info small{color:#bdacd1}
.study-tools{gap:11px}
.modal{color:#f5eeff;border:0;border-radius:21px;background:linear-gradient(160deg,#35284e,#231b37 75%);box-shadow:0 25px 90px #090519c9;padding:22px}
.modal::backdrop{background:#0d0a1cba;backdrop-filter:blur(7px)}
.modal-head h2,.art-dialog h2{color:#fff5ff}
.setting-block{border-top:1px solid #b49aca2d}
.setting-label{color:#f5e4ff}
.setting-label output{color:#cfb0eb}
.speed-range{accent-color:#c1a1fa}
.slider-ends{color:#af9cc9}
.settings-buttons button{border:0;border-radius:12px;color:#f7e7ff;background:linear-gradient(#574075,#3e2d5e);box-shadow:inset 0 1px 0 #dec5ff35;padding:12px 16px}
.settings-buttons button:hover{background:#70518c}
.settings-stats{font-size:12px;line-height:1.6;color:#cdbbdf;margin:16px 0 0;font-variant-numeric:tabular-nums}
.settings-stats strong{color:#fff5ce}
.help-text p{color:#d3c5df}
.help-text h3{color:#ffe4ab}
.detail-image-frame{display:grid;place-items:center;min-width:0;height:min(43vh,360px);overflow:hidden;background:radial-gradient(#57426b,#28203d);border:0;border-radius:15px;padding:16px}
.detail-image-frame img{display:block;width:100%;height:100%;max-height:100%;max-width:100%;min-width:0;min-height:0;object-fit:contain;filter:drop-shadow(0 8px 12px #09051f99)}
.detail-era{color:#e1bcff}
.detail-tags .tag{border:0;background:#49355c;color:#f7eaff}
.detail-tags .verified-tag{background:#23493d;color:#c6ffe5}
.detail-notes{color:#bfaed0}
.detail-links a{background:linear-gradient(140deg,#8c67bd,#644d92);color:#fff;border:0;border-radius:11px}
.detail-links a.secondary{background:#4b3c61;color:#f2e7ff}
@keyframes reward-wave{0%{opacity:1;transform:translate(-50%,-50%) scale(.1)}75%{opacity:.75}100%{opacity:0;transform:translate(-50%,-50%) scale(3.5)}}
@keyframes field-glow{0%{opacity:1}100%{opacity:0}}
@keyframes confetti-fly{0%{opacity:0;transform:translate(0,0) rotate(0) scale(.15)}15%{opacity:1}65%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--spin)) scale(.4)}}
@media(max-width:950px){.answer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.study-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){
 .app{padding:0 9px 9px}.topbar{height:57px;gap:7px}.brand-mark{width:34px;height:34px;font-size:26px}.nav-link{padding:8px 16px;font-size:12px}.icon-button{width:34px;height:34px}.brand-name{display:none}
 .play-screen{border-radius:19px;padding:7px 7px 8px}.game-tools{padding:1px 1px 8px}.mode-button{padding:8px 15px;font-size:12px;min-width:61px}.game-totals{padding:5px 13px;gap:7px;min-width:64px}.game-totals strong{font-size:17px}.game-totals .score-star{font-size:19px}
 .playfield{height:clamp(280px,43svh,440px);border-radius:13px 13px 5px 5px}.object-track{height:clamp(225px,36svh,365px)}.object-track img{max-width:97%}.object-track img.wide-artwork{max-width:100%;max-height:94%}
 .field-pill{padding:8px 11px;font-size:11px}.field-actions{top:9px;left:9px;right:9px}.reward-burst{top:45%}.confetti{width:calc(var(--size,25px)*.68);height:calc(var(--size,25px)*.68)}.reward-ring{width:115px;height:115px}
 .answers{padding:8px 4px 3px}.answer-grid,.answer-grid.tags-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.answer-button{min-height:47px;padding:8px 5px;font-size:12px;border-radius:9px}.quiet-actions{padding:2px}.quiet-actions button{padding:6px}
 .study-screen{padding-top:14px}.study-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.study-card-image{max-height:none;aspect-ratio:1.05;padding:9px}.study-card-info{min-height:80px;padding:10px}.study-card-info strong{font-size:12px}.study-card-info small{font-size:10px}.select-wrap select{width:120px;font-size:11px;padding:8px 31px 8px 10px}.select-wrap:after{top:8px;right:10px}.study-head{margin-bottom:14px}.study-tools{gap:7px}
 .footer{justify-content:center;font-size:9px;padding-top:10px}.result-panel{width:87%;padding:13px 12px}.result-panel #result-symbol{font-size:52px}.result-panel #result-object{font-size:15px}.result-panel #result-era{font-size:11px}
}
@media(max-width:350px){.nav-link{padding:7px 11px}.mode-button{padding:7px 11px}.game-totals{padding:5px 8px}.answer-button{font-size:11px}.study-card-image{aspect-ratio:.99}}
@media(prefers-reduced-motion:reduce){.parallax-backdrop img{transform:scale(1.68)!important}}
/* Give small source cut-outs a full stage instead of displaying at intrinsic pixel size. */
.object-track img{width:89%;height:89%;max-width:none;max-height:none;object-fit:contain}
.object-track img.wide-artwork{width:100%;height:96%;max-width:none;max-height:none}
@media(max-width:650px){.object-track img{width:97%;height:90%;max-width:none;max-height:none}.object-track img.wide-artwork{width:100%;height:95%;max-width:none;max-height:none}}
/* Pause is for looking closely at the object: never blur or dim the sharp image. */
.pause-shade{background:transparent;backdrop-filter:none;justify-content:flex-end;align-items:flex-end;flex-direction:row;gap:6px;padding:13px 18px;color:#fff0c2;text-shadow:0 1px 7px #08041f;font-size:11px}
.pause-symbol{font-size:17px;line-height:1;filter:drop-shadow(0 0 7px #ecc27f)}

/* V4 — original Ancient-Greece.org mark and front-of-game speed stepping. */
.brand{min-width:0;display:flex;align-items:center;justify-content:center}
.brand-logo{display:block;width:38px;height:48px;object-fit:contain;filter:drop-shadow(0 0 7px #ad6fa34d)}
.icon-button.settings-trigger{display:grid;place-items:center;padding:0;flex:0 0 auto}
.settings-trigger .gear-icon{display:block;width:22px;height:22px;overflow:visible;transform:none;flex:0 0 auto}
.game-tools{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;justify-content:space-between}
.game-tools .mode-switch{justify-self:start}
.game-tools .game-totals{justify-self:end}
.speed-controls{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;border-radius:99px;background:#31254c;box-shadow:inset 0 2px 7px #0a071d7a;padding:3px 4px}
.speed-step{display:grid;place-items:center;min-width:35px;width:35px;height:35px;border:0;border-radius:50%;background:linear-gradient(145deg,#664580,#483162);box-shadow:inset 0 1px 0 #fff2ff33,0 2px 6px #10091e3b;color:#fff;line-height:1;font-size:19px;transition:transform .14s,background .14s;touch-action:manipulation}
.speed-step:hover:not(:disabled){background:linear-gradient(145deg,#8060a0,#563b7c);transform:translateY(-1px)}
.speed-step:active:not(:disabled){transform:scale(.94)}
.speed-step:disabled{opacity:.34;cursor:default}
.speed-readout{display:block;min-width:27px;text-align:center;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;color:#f2d2ff;letter-spacing:.01em}
.field-actions{justify-content:flex-end}
.pause-shade{background:transparent;backdrop-filter:none;pointer-events:none;justify-content:flex-end;align-items:flex-end;flex-direction:row;gap:6px;padding:13px 18px;color:#fff0c2;text-shadow:0 1px 7px #08041f;font-size:11px}
.pause-symbol{font-size:17px;line-height:1}
@media(max-width:650px){
  .brand-logo{width:28px;height:38px}
  .topbar{gap:8px}
  .icon-button.settings-trigger{width:37px;height:37px}
  .settings-trigger .gear-icon{width:21px;height:21px}
  .game-tools{gap:6px;padding:2px 1px 9px}
  .speed-controls{gap:2px;padding:2px 3px}
  .speed-step{width:29px;min-width:29px;height:31px;font-size:17px}
  .speed-readout{min-width:22px;font-size:12px}
  .game-totals{min-width:51px;padding:5px 8px;gap:5px}
  .game-totals .score-star{font-size:17px}
  .game-totals strong{font-size:17px}
  .mode-button{padding:8px 11px;font-size:12px;min-width:48px}
}
@media(max-width:360px){
  .topbar{gap:5px}
  .brand-logo{width:26px}
  .game-tools{gap:3px}
  .mode-button{padding:7px 8px;min-width:41px;font-size:11px}
  .speed-step{width:27px;min-width:27px;height:29px}
  .game-totals{padding:4px 6px;min-width:46px}
}
/* The clue overlay should never steal taps from the moving image outside its button. */
.field-actions{pointer-events:none}
.field-actions button{pointer-events:auto}
/* Live Media Library loading state; disappears once WordPress photos arrive. */
.live-loading{position:absolute;inset:0;z-index:15;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:20px;color:#f8eaff;font-size:15px;background:#20162fdb;backdrop-filter:blur(5px)}
.live-loading p{margin:0;max-width:280px}
.live-loading button{border:0;border-radius:13px;background:#e8c7fa;color:#241430;padding:11px 22px;font-weight:750;cursor:pointer}
.live-loading.error{background:#24172fe8}
/* Live archive photographs are full rectangular images: contain without cutting them off. */
.object-track img,.object-track img.wide-artwork{object-fit:contain}

.study-more{display:block;width:fit-content;max-width:100%;margin:20px auto 4px;border:0;border-radius:14px;background:#5d457a;color:#f7ecff;padding:13px 22px;font:inherit;font-weight:750;cursor:pointer}
.study-more:hover{background:#765796}

/* v0.5.1: No stale photograph during the next full-size image request. */
.object-track,.parallax-backdrop{transition:opacity 220ms ease-out}
.playfield.round-complete .object-track,.playfield.round-changing .object-track{opacity:0;pointer-events:none}
.playfield.round-complete .parallax-backdrop,.playfield.round-changing .parallax-backdrop{opacity:.10}
/* Flat monochrome animal silhouettes for touch-friendly speed stepping. */
.speed-step{color:#eee1fa}
.speed-step .animal-mark{display:block;width:27px;height:24px;fill:currentColor;flex:none}
@media(max-width:650px){.speed-step .animal-mark{width:23px;height:22px}}
@media(max-width:360px){.speed-step .animal-mark{width:21px;height:20px}}

/* v0.5.4: retain v0.5.1 gameplay; adjust only the play controls and Study browsing. */
[hidden]{display:none!important}
.game-tools{grid-template-columns:1fr 1fr}
.game-tools .game-totals{justify-self:end}
/* Thumb-reachable speed slider, with rectangular -/+ targets (no animal icons or circles). */
.bottom-game-controls{display:flex;align-items:center;gap:8px;padding:10px 8px 6px;background:#1c1734;border-radius:0 0 16px 16px;min-width:0}
.speed-adjust{flex:0 0 46px;width:46px;height:44px;border:0;border-radius:9px;background:#5d4679;color:#f9eaff;font-size:24px;line-height:1;font-weight:500;display:grid;place-items:center;box-shadow:inset 0 1px 0 #ffffff35;touch-action:manipulation}
.speed-adjust:hover:not(:disabled){background:#7d5a9f}
.speed-adjust:active:not(:disabled){background:#3c2c5d}
.speed-adjust:disabled{opacity:.38}
.speed-range-main{appearance:none;-webkit-appearance:none;flex:1 1 auto;min-width:60px;width:100%;height:42px;margin:0;cursor:pointer;background:transparent;touch-action:pan-y;accent-color:#ddc7ff}
.speed-range-main::-webkit-slider-runnable-track{height:8px;border-radius:8px;background:linear-gradient(90deg,#70538f,#b59dd6);box-shadow:inset 0 1px 2px #190c2c90}
.speed-range-main::-moz-range-track{height:8px;border-radius:8px;background:linear-gradient(90deg,#70538f,#b59dd6)}
.speed-range-main::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:24px;height:26px;border-radius:7px;background:#f0ddff;border:2px solid #402c62;box-shadow:0 2px 7px #07041177;margin-top:-9px}
.speed-range-main::-moz-range-thumb{width:24px;height:26px;border-radius:7px;background:#f0ddff;border:2px solid #402c62;box-shadow:0 2px 7px #07041177}
.speed-range-main:focus-visible{outline:2px solid #ffe0a6;outline-offset:1px;border-radius:8px}
.bottom-game-controls .speed-readout{min-width:26px;color:#d8c2e9;flex:0 0 26px;text-align:center;font-size:12px;font-weight:740;font-variant-numeric:tabular-nums}
.skip-adjust{flex:0 0 auto;min-height:44px;min-width:50px;border:0;border-radius:9px;color:#c5b5d4;background:#34294e;padding:7px 11px;font-size:12px;font-weight:760;touch-action:manipulation}
.skip-adjust:hover{background:#584471;color:#fff}
/* Related tags rotate automatically; no manual Clue button. */
.field-actions{z-index:8;justify-content:flex-end;pointer-events:none}
.tag-hint{max-width:min(72%,390px);min-height:38px;display:flex;justify-content:flex-end;align-items:center;color:#ffdfaa;padding:8px 14px;background:#302543d9;border-radius:12px;box-shadow:inset 0 1px 0 #ffffff20,0 6px 20px #0b061c80;backdrop-filter:blur(9px);font-size:13px;font-weight:730;text-align:right;pointer-events:none}
.tag-hint span{display:block;white-space:normal;overflow-wrap:anywhere}
.hint-change{animation:hint-v054 380ms ease-out both}
@keyframes hint-v054{0%{opacity:.1;transform:translateY(5px)}100%{opacity:1;transform:translateY(0)}}
/* Keep existing photograph movement and result timings; display title alone. */
.result-panel{width:min(85%,480px);padding:15px 20px;border:0!important;border-radius:14px;background:#251c3bdb;box-shadow:0 13px 42px #0c071c9c;backdrop-filter:blur(7px)}
.result-panel #result-object{color:#fff2d8;font-size:clamp(16px,3vw,25px);line-height:1.25;font-weight:790;letter-spacing:-.015em;text-wrap:balance}
/* Zoom is independent of the moving track, and remains accessible while paused. */
.zoom-controls{position:absolute;z-index:8;right:12px;bottom:11px;display:flex;gap:5px;padding:3px;background:#241b3ddd;border-radius:12px;box-shadow:0 3px 14px #10091ecc;backdrop-filter:blur(8px)}
.zoom-controls button{min-width:42px;min-height:42px;border:0;border-radius:9px;background:#564070;color:#fbefff;font-size:25px;line-height:1;display:grid;place-items:center;touch-action:manipulation}
.zoom-controls button:hover:not(:disabled){background:#74518e}
.zoom-controls button:disabled{opacity:.3}
.object-track img{transform-origin:center center;will-change:scale}
/* Three Study collections with an archive-wide server-paged Featured/era filter. */
.study-head{align-items:center;margin-bottom:13px}
.study-head h1{font-size:clamp(28px,4vw,39px);letter-spacing:-.025em}
.study-tabs{display:flex;align-items:center;gap:5px;margin-bottom:14px;max-width:100%;padding:5px;border-radius:14px;background:#211a35}
.study-tab{flex:1;min-width:0;min-height:44px;border:0;background:transparent;border-radius:10px;color:#c9b9df;font-size:14px;font-weight:740;touch-action:manipulation}
.study-tab.active{background:#634781;color:#fff0ff;box-shadow:inset 0 1px 0 #ffffff30}
.study-tab-count{opacity:.75;font-size:11px;margin-left:4px}
.study-tools{justify-content:space-between;align-items:center;min-height:47px;margin-bottom:14px}
.study-era-dropdown{position:relative;z-index:20;min-width:175px;max-width:76vw}
.study-era-dropdown summary{list-style:none;min-height:46px;padding:12px 36px 12px 16px;border:0;border-radius:11px;background:#352746;color:#f6e7ff;font-weight:720;font-size:13px;cursor:pointer;user-select:none;position:relative}
.study-era-dropdown summary::-webkit-details-marker{display:none}
.study-era-dropdown summary:after{content:'⌄';position:absolute;right:13px;top:7px;font-size:21px;color:#d9c0e5}
.study-era-dropdown summary:focus-visible{outline:3px solid #dbc4ff;outline-offset:2px}
.study-era-menu{position:absolute;top:calc(100% + 5px);left:0;min-width:245px;max-height:min(65vh,440px);overflow:auto;padding:7px;background:#2c213e;border:1px solid #80639d;border-radius:13px;box-shadow:0 12px 40px #0008;z-index:35}
.study-era-menu button,.study-era-menu a{display:block;width:100%;text-align:left;padding:12px 14px;border:0;border-radius:8px;background:transparent;color:#eee2fa;text-decoration:none;font-size:13px;font-weight:680;cursor:pointer}
.study-era-menu button:hover,.study-era-menu a:hover,.study-era-menu button:focus-visible,.study-era-menu a:focus-visible{background:#624679;color:#fff}
.study-era-menu a{border-top:1px solid #80639d5e;margin-top:4px;color:#ffdc99}
.study-grid-wrap{position:relative;min-width:0;min-height:150px}
.study-page-arrow{position:absolute;z-index:14;top:clamp(85px,20vw,220px);width:46px;height:56px;border:0;border-radius:12px;background:#302346e8;color:#fae7ff;font-family:Georgia,serif;font-size:40px;font-weight:400;line-height:1;display:grid;place-items:center;box-shadow:0 5px 20px #0007;backdrop-filter:blur(8px);cursor:pointer;touch-action:manipulation}
.study-page-arrow:hover:not(:disabled){background:#765295;color:#fff}
.study-page-arrow:disabled{opacity:.20;cursor:default;box-shadow:none}
.study-page-prev{left:-15px}.study-page-next{right:-15px}
.study-page-status{text-align:center;color:#cdbddb;font-size:12px;font-weight:720;margin:15px 0 6px;font-variant-numeric:tabular-nums}
.study-grid{gap:13px;min-width:0}
.study-card-image{display:grid;place-items:center;overflow:hidden;min-width:0;min-height:0;width:100%;height:auto;aspect-ratio:1.36;max-height:240px;padding:17px;background:radial-gradient(ellipse at 50% 50%,#534269,#2d2445 72%,#241d36 100%)}
.study-card-image img{display:block;min-width:0;min-height:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.study-message{grid-column:1/-1;text-align:center;color:#c9b4d6;font-size:13px;padding:35px 15px;min-height:145px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px}
.study-message p{margin:0}
.study-message button{margin-top:6px;min-height:42px;padding:9px 15px;background:#684882;color:#fff;border:0;border-radius:10px;font-weight:700}
.detail-notes{white-space:pre-line;line-height:1.65;overflow-wrap:anywhere}
@media(max-width:650px){
  .bottom-game-controls{gap:5px;padding:7px 2px 4px}
  .speed-adjust{flex-basis:42px;width:42px;height:44px;font-size:24px}
  .bottom-game-controls .speed-readout{flex-basis:24px;min-width:24px;font-size:11px}
  .skip-adjust{min-width:46px;padding:5px 8px}
  .tag-hint{max-width:72%;min-height:34px;padding:6px 10px;font-size:11px}
  .study-tab{font-size:12px;min-height:43px}
  .study-page-arrow{width:35px;height:50px;font-size:34px;top:clamp(65px,23vw,160px)}
  .study-page-prev{left:-10px}.study-page-next{right:-10px}
  .zoom-controls{right:8px;bottom:7px}
  .zoom-controls button{min-width:36px;min-height:36px;font-size:22px}
}
@media(max-width:350px){.speed-adjust{flex-basis:39px;width:39px}.bottom-game-controls{gap:3px}.skip-adjust{min-width:43px}}
@media(prefers-reduced-motion:reduce){.hint-change{animation:none}}

/* v0.5.5: larger drifting photographs dissolve into the surrounding stage. */
.playfield{background:radial-gradient(ellipse at 50% 42%,#544265 0%,#2b2047 48%,#15122a 100%)}
.parallax-backdrop{opacity:.93;inset:-32% -26%;mask-image:radial-gradient(ellipse 74% 78% at 50% 49%,black 29%,transparent 100%)}
.parallax-backdrop img{filter:blur(47px) saturate(1.48) brightness(1.28);opacity:.88}
.field-vignette{background:radial-gradient(ellipse 70% 79% at 50% 45%,transparent 38%,#17112c58 81%,#0c0b1ad5 100%)}
.field-art{opacity:.19}
.object-track{height:94%;touch-action:none;user-select:none;-webkit-user-select:none}
.object-track img,.object-track img.wide-artwork{width:100%;height:100%;max-height:none;max-width:none;object-fit:contain;transform:scale(1.03);filter:drop-shadow(0 22px 22px #0703138c);-webkit-mask-image:radial-gradient(ellipse 86% 85% at 50% 50%,#000 44%,#000e 66%,transparent 100%);mask-image:radial-gradient(ellipse 86% 85% at 50% 50%,#000 44%,#000e 66%,transparent 100%)}
/* Floating, short-lived photo-tag flashes along the bottom of the picture. */
.field-actions{top:auto;bottom:15px;left:16px;right:16px;z-index:9;justify-content:center;pointer-events:none}
.tag-hint{max-width:90%;min-height:0;padding:4px 8px;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;text-align:center;justify-content:center;font-size:clamp(14px,2vw,23px);font-weight:860;letter-spacing:.02em;line-height:1.2;color:#fff7e6;text-shadow:0 2px 6px #130a28,0 0 18px #050212,0 0 30px #fce8be80}
.hint-change{animation:hint-flash-v055 570ms cubic-bezier(.17,.85,.3,1) both}
@keyframes hint-flash-v055{0%{opacity:0;transform:translateY(12px) scale(.9);filter:blur(5px)}25%{opacity:1;transform:translateY(0) scale(1.08);filter:blur(0)}100%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
/* Magnifier symbols distinguish zoom from the thumb-reachable speed gauge. */
.zoom-controls{gap:2px;padding:3px;border-radius:10px;background:#1e1634d0}
.zoom-controls .zoom-label{display:flex;align-items:center;padding:0 5px;pointer-events:none}
.zoom-controls svg,.speed-label svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.zoom-controls button{font-size:18px;min-width:39px;min-height:43px}
.zoom-controls button svg{width:23px;height:23px}
.speed-label{display:flex;align-items:center;gap:4px;color:#d6c0e6;font-size:11px;font-weight:760;flex:0 0 auto}
.speed-label svg{width:22px;height:22px}
.bottom-game-controls{gap:7px;padding:10px 8px 8px}
.bottom-game-controls .speed-adjust{flex-basis:40px;width:40px}
.skip-adjust{padding:8px 12px;min-height:44px;white-space:nowrap}
.review-note{position:absolute;z-index:10;left:50%;top:17px;transform:translateX(-50%);pointer-events:none;max-width:90%;color:#f9e7c9;background:#241b3dcc;backdrop-filter:blur(8px);border-radius:10px;padding:9px 14px;text-align:center;font-size:12px;font-weight:750;text-shadow:0 1px 5px #000}
.playfield.is-reviewing .field-actions,.playfield.is-reviewing .zoom-controls{opacity:.6}
.playfield.is-reviewing .object-track{cursor:default}
.playfield.is-reviewing .object-track img{transform:scale(1.07)}
.playfield.is-reviewing ~ .answers .answer-button{opacity:.4}
/* Optional type-to-match, with a small live preview and responsive input. */
.type-toggle{justify-self:center;width:42px;height:38px;border:0;border-radius:9px;background:#342747;color:#dcc9ed;display:grid;place-items:center;touch-action:manipulation}
.type-toggle[aria-pressed="true"]{background:#765294;color:#fff}
.type-toggle svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.game-tools{grid-template-columns:1fr auto 1fr}
.type-panel{display:flex;align-items:center;gap:9px;padding:6px 10px;background:#1c1734;color:#f4e4ff}
.type-panel input{width:min(100%,330px);min-width:0;flex:0 1 330px;min-height:39px;padding:7px 10px;border:1px solid #725890;background:#29203f;color:#fff;border-radius:8px;font-size:14px}
.type-panel input::placeholder{color:#ac97c4}
.type-panel #type-feedback{font-size:12px;font-weight:760;color:#f9e4b6;min-width:0}
.study-card:focus-visible{outline:3px solid #ffdfad;outline-offset:1px;transform:translateY(-2px)}
@media(max-width:650px){
 .object-track{height:93%}.object-track img,.object-track img.wide-artwork{height:100%;width:100%}
 .field-actions{bottom:7px}.tag-hint{font-size:15px;max-width:88%}
 .bottom-game-controls{gap:4px;padding:7px 3px}
 .bottom-game-controls .speed-adjust{flex-basis:35px;width:35px;min-height:42px;height:42px}
 .speed-label{font-size:0}.speed-label svg{width:20px;height:20px}
 .bottom-game-controls .speed-readout{display:none}
 .skip-adjust{padding:5px 7px;min-width:47px;font-size:11px}
 .zoom-controls{right:6px;bottom:5px}.zoom-controls button{min-width:36px;min-height:38px}
 .zoom-controls .zoom-label{padding:0 2px}.zoom-controls .zoom-label svg{width:18px;height:18px}
 .type-toggle{width:36px;height:34px}.type-panel{gap:5px}.type-panel input{min-height:35px;font-size:13px}.type-panel #type-feedback{font-size:11px}
}
@media(max-width:350px){.bottom-game-controls{gap:2px}.bottom-game-controls .speed-adjust{flex-basis:31px;width:31px}.skip-adjust{padding:4px 6px;font-size:10px;min-width:42px}}
@media(prefers-reduced-motion:reduce){.hint-change{animation:none}}

/* Version 0.5.6: large uninterrupted mobile artwork and three visible era options */
.answer-grid,.answer-grid.tags-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.answer-button{border:0;border-top:4px solid var(--era-color,#ad7fb6);background:linear-gradient(170deg,color-mix(in srgb,var(--era-color,#ad7fb6) 30%,#32254b),#352847);color:#fff6ff;min-height:60px;box-shadow:0 3px 9px #130b2480}
.answer-button:hover:not(:disabled){background:color-mix(in srgb,var(--era-color,#ad7fb6) 45%,#2e213d);color:#fff;border:0;border-top:4px solid var(--era-color,#ad7fb6)}
.answer-button.correct{border-top-color:#a7e5aa;background:#245d4e;color:#fff}
.answer-button.incorrect{border-top-color:#ffb4a1;background:#7a3f50;color:#fff}
.game-totals{gap:8px!important}.avg-stat{display:flex;flex-direction:column;align-items:flex-end;line-height:1.05;padding-right:10px;border-right:1px solid #ffffff25;font-variant-numeric:tabular-nums}.avg-stat small{font-size:9px;letter-spacing:.06em;color:#d9c7ef}.avg-stat strong{font-size:13px;color:#f4e7b8}
.record-flash{position:absolute;z-index:29;top:11%;left:50%;transform:translateX(-50%);white-space:nowrap;max-width:94%;padding:11px 18px;border-radius:11px;background:#2b224de6;color:#ffeba3;font-size:clamp(14px,2vw,21px);font-weight:850;box-shadow:0 8px 35px #0b061dcc;animation:record-beat 500ms ease-out both;pointer-events:none;text-align:center}
@keyframes record-beat{0%{scale:.78;opacity:0}60%{scale:1.08;opacity:1}100%{scale:1;opacity:1}}
.milestone-toast{position:absolute;z-index:28;bottom:68px;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;border:1px solid #f2cc77;background:#49345fef;color:#fff2b1;border-radius:12px;padding:11px 15px;box-shadow:0 5px 25px #0008;font-weight:800;font-size:13px}
.awards-collection{display:grid;gap:9px;grid-template-columns:repeat(3,minmax(0,1fr));margin:14px 0}.award-card{background:#352549;color:#fff2fe;border-radius:9px;min-height:115px;padding:12px 9px;display:flex;flex-direction:column;justify-content:space-between;gap:8px}.award-card strong{font-size:13px}.award-card span{font-size:11px;color:#dbbdf2}.award-card button,.awards-download,.patron-choice{border:0;background:#8463a3;color:#fff;border-radius:8px;padding:10px;font-weight:750;font-size:12px;min-height:40px}.awards-download{width:100%}.awards-download:disabled{opacity:.4}.patron-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.patron-choice{text-align:left;font-size:15px}
.reward-burst{z-index:30!important;isolation:isolate;overflow:visible!important}.confetti{filter:drop-shadow(0 0 6px var(--c))}.reward-ring{border-width:6px}
@media(max-width:650px){
 .app{padding-left:9px;padding-right:9px;padding-bottom:5px}
 .topbar{height:54px!important}.game-tools{padding:6px 1px!important}
 .playfield{height:clamp(410px,125vw,640px)!important;min-height:390px!important;border-radius:8px!important}
 html.ag-embedded .playfield{height:clamp(410px,125vw,640px)!important;min-height:390px!important}
 .answers{margin:4px 0 0!important;padding:0!important}
 .answer-grid,.answer-grid.tags-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
 .answer-button{min-height:54px!important;padding:6px 3px!important;font-size:clamp(11px,3.1vw,13px)!important;line-height:1.13!important;border-radius:8px}
 .bottom-game-controls{padding:5px 3px!important;gap:3px!important}
 .reward-burst{z-index:31!important}
 .reward-ring{width:95px!important;height:95px!important;left:0!important;top:0!important}
 .avg-stat{padding-right:7px}.avg-stat small{font-size:8px}.avg-stat strong{font-size:12px}
 .awards-collection{grid-template-columns:1fr}
 .award-card{min-height:75px}
}
@media(max-width:380px){.playfield,html.ag-embedded .playfield{height:clamp(350px,120vw,530px)!important;min-height:340px!important}}

@media(min-width:651px){.answer-grid,.answer-grid.tags-grid{max-width:900px;margin-left:auto;margin-right:auto}}

/* v0.5.7 — compact game, Featured/All challenge, legible scoring, PNG rewards. */
[hidden]{display:none!important}
.game-tools{display:grid;grid-template-columns:auto auto auto 1fr;gap:9px;align-items:center;min-width:0}
.game-tools .mode-switch{justify-self:start}.game-tools .game-totals{justify-self:end;min-width:0;white-space:nowrap;gap:4px!important}
.game-totals small{font-size:10px;font-weight:700;color:#d8c9ef;letter-spacing:.04em}
.source-toggle{border:1px solid #75618f;color:#f9edff;background:#403052;border-radius:9px;padding:9px 13px;white-space:nowrap;font-weight:770;font-size:12px;min-height:37px;touch-action:manipulation}
.source-toggle[aria-pressed="true"]{border-color:#d2b8ed;background:#684784;color:#fff}
.source-toggle:disabled{opacity:.55}
.speed-bonus{flex:0 0 auto;font-size:14px;color:#fae4a2;font-weight:900;font-variant-numeric:tabular-nums;min-width:29px;text-align:center}
.speed-readout{display:none!important}
.zoom-controls .zoom-label{display:none!important}
.earned-badges{position:absolute;z-index:18;left:9px;top:9px;display:flex;gap:6px;align-items:center;pointer-events:auto;max-width:calc(100% - 22px);overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.earned-badges::-webkit-scrollbar{display:none}
.earned-badge,.settings-award,.award-card-picture{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dfc18d;background:#221630;border-radius:8px;padding:2px;cursor:pointer;box-shadow:0 2px 14px #07021894;touch-action:manipulation}
.earned-badge{width:42px;height:53px}.earned-badge img{display:block;width:100%;height:100%;object-fit:contain}
.earned-badge:hover,.settings-award:hover{transform:scale(1.07)}
.settings-badges{display:flex;align-items:center;gap:7px;min-height:48px}
.settings-award{width:41px;height:53px}.settings-award img{width:100%;height:100%;object-fit:contain}
.report-block .report-label{display:block;font-size:12px;margin:11px 0 5px;color:#e9d8f3}
.report-block input{width:100%;background:#2b2141;color:white;border:1px solid #786089;border-radius:8px;min-height:42px;padding:8px 11px;font:inherit;font-size:13px}
.report-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
#report-download{border:0;border-radius:9px;background:#7b59a1;color:white;font-size:13px;font-weight:800;min-height:44px;padding:11px 15px;cursor:pointer}
#report-download:hover{background:#9971bc}
.award-card-picture{width:100%;max-width:190px;height:170px;margin:2px auto 6px;padding:0;border:0;background:transparent;box-shadow:none}
.award-card-picture img{width:100%;height:100%;object-fit:contain}
.patron-choice{display:flex;gap:10px;align-items:center;text-align:left!important;padding:7px!important}
.patron-choice img{width:55px;height:70px;object-fit:contain;flex:0 0 auto}
.awards-dialog{width:min(90vw,670px)}
.award-card{align-items:center;text-align:center;min-height:130px}
.awards-collection{grid-template-columns:repeat(3,minmax(0,1fr))}
/* A single word-and-answer animation replaces rings and confetti; it works even on reduced-performance phones. */
.reward-burst{display:none!important}
.result-panel.correct{background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;min-height:0!important;padding:0!important;width:94%!important;animation:ag-bravo .84s cubic-bezier(.2,.7,.27,1) both;z-index:24!important}
.result-panel.correct #result-object{font-size:clamp(22px,5vw,50px)!important;font-weight:900!important;color:#fff4d1!important;text-shadow:0 3px 8px #120722,0 0 22px #feeabbbd;letter-spacing:-.015em}
@keyframes ag-bravo{0%{opacity:0;transform:translate(-50%,-50%) scale(.60)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.10)}60%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.44)}}
/* Study arrows follow the reader's position through the hosting page's viewport signal. */
.study-grid-wrap{position:relative}.study-page-arrow{top:var(--study-arrow-y,180px)!important;transform:translateY(-50%);transition:top 75ms ease-out}
.study-page-prev{left:-8px!important}.study-page-next{right:-8px!important}
@media(max-width:650px){
 .app{padding:0 6px 5px!important}.topbar{height:49px!important}
 .game-tools{grid-template-columns:auto auto auto minmax(49px,1fr);gap:4px!important;padding:4px 0!important}
 .mode-button{padding:6px 9px!important;min-width:0!important;font-size:11px!important;min-height:31px}
 .source-toggle{padding:6px 8px;font-size:10px;min-height:33px}
 .type-toggle{width:32px;height:33px}.type-toggle svg{width:18px;height:18px}
 .game-totals{padding:4px 6px!important;gap:2px!important;min-width:42px!important}
 .game-totals strong{font-size:17px!important}.game-totals .score-star{font-size:13px!important}.game-totals small{font-size:9px}
 .play-screen{padding:2px 4px 4px!important;border-radius:9px!important}
 .playfield{height:clamp(212px,calc(100svh - 253px),530px)!important;min-height:0!important;border-radius:7px!important}
 html.ag-embedded .playfield{height:clamp(212px,calc(var(--ag-host-vh,650px) - 253px),530px)!important;min-height:0!important}
 .object-track{height:94%!important}
 .answers{margin:3px 0 0!important}.answer-grid,.answer-grid.tags-grid{gap:4px!important}
 .answer-button{min-height:46px!important;padding:5px 2px!important;font-size:clamp(10px,3vw,12px)!important;border-radius:6px}
 .bottom-game-controls{padding:4px 2px!important;gap:3px!important}
 .bottom-game-controls .speed-adjust{height:38px!important;min-height:38px!important;flex-basis:32px!important;width:32px!important}
 .speed-range-main{min-width:35px}
 .speed-bonus{font-size:12px;min-width:22px}
 .skip-adjust{height:38px;min-height:38px;padding:4px 5px!important;font-size:10px;min-width:40px!important}
 .zoom-controls{bottom:3px;right:3px}.zoom-controls button{min-width:32px;min-height:34px;height:34px}
 .earned-badges{top:4px;left:4px;gap:3px;max-width:calc(100% - 8px)}.earned-badge{width:31px;height:40px;border-radius:5px}
 .footer{padding-top:3px!important;font-size:8px}
 .study-page-arrow{height:52px;width:36px}.study-page-prev{left:-6px!important}.study-page-next{right:-6px!important}
 .awards-collection{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .award-card{padding:6px 3px;min-height:100px}.award-card-picture{height:110px}
 .award-card strong{font-size:10px}.award-card span{font-size:9px}
 .patron-choices{gap:5px}.patron-choice{font-size:12px;padding:4px!important;gap:4px}.patron-choice img{width:37px;height:49px}
}
@media(max-width:355px){
 .game-tools{gap:2px!important}.mode-button{padding:5px 7px!important;font-size:10px!important}.source-toggle{padding:6px 5px}
 .type-toggle{width:29px}.game-totals{padding:4px!important}
 .playfield{height:clamp(208px,calc(100svh - 247px),490px)!important}
 html.ag-embedded .playfield{height:clamp(208px,calc(var(--ag-host-vh,650px) - 247px),490px)!important}
}
@media(prefers-reduced-motion:reduce){.result-panel.correct{animation:ag-bravo .84s ease-out both}}

/* 0.5.8 interim: obvious Featured/All Art toggle, bottom Study navigation,
   safe mobile award dialogs; deity art follows with the next user-supplied PDF. */
.source-toggle::after{content:" ⇄";display:inline-block;margin-left:6px;font-size:1.1em;opacity:.9}
.study-bottom-nav{display:flex;justify-content:center;align-items:center;gap:15px;margin:16px auto 22px;position:relative;z-index:4}
.study-bottom-nav button{border:0;border-radius:11px;background:#5d447b;color:#fff7ff;min-height:50px;min-width:70px;font-size:27px;touch-action:manipulation}
.study-bottom-nav button:disabled{opacity:.25;cursor:default}
.study-bottom-nav span{min-width:70px;text-align:center;color:#dfcee9;font-variant-numeric:tabular-nums;font-weight:700;font-size:14px}
.award-preview-image{width:100%;height:auto;max-height:225px;object-fit:contain;display:block}
.award-download-single{margin-top:8px;font-size:12px;min-height:42px}
.awards-dialog,.patron-dialog{max-height:calc(100dvh - 24px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.awards-collection{max-height:none;overflow:visible}
@media(max-width:600px){
 .awards-dialog,.patron-dialog{width:calc(100vw - 16px);max-width:none;margin:8px;padding:14px;max-height:calc(100dvh - 16px);}
 .award-preview-image{max-height:145px}
 .study-bottom-nav{margin-top:16px;margin-bottom:27px}
 .study-bottom-nav button{min-width:70px;min-height:52px}
}
/* v0.6.0: Stage 1 collectible pantheon progression. Smaller than the photo area. */
.earned-badges{max-width:calc(100% - 180px)}
.next-god{position:absolute;z-index:19;top:9px;right:9px;display:flex;gap:7px;align-items:center;
 width:160px;min-height:68px;border:1px solid #bfa27a9e;border-radius:10px;
 padding:5px;background:#241735df;color:#f8eddb;box-shadow:0 5px 22px #08020eaa;text-align:left;
 cursor:pointer;touch-action:manipulation;backdrop-filter:blur(8px)}
.next-god img{width:36px;height:52px;flex:0 0 36px;object-fit:cover;object-position:top;border:1px solid #d8b671;border-radius:5px;filter:brightness(.65) saturate(.65)}
.next-god-details{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.next-god strong{font-size:11px;line-height:1.15;color:#fff2dd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.next-god small{font-size:10px;font-weight:750;color:#e7d0ff;font-variant-numeric:tabular-nums}
.next-god-bar{display:block;height:4px;border-radius:10px;background:#766381;overflow:hidden}
.next-god-bar span{display:block;width:0;height:100%;border-radius:10px;background:linear-gradient(90deg,#cda7f1,#ffe2a1);transition:width .35s}
.next-god:focus-visible,.god-unlock-continue:focus-visible{outline:3px solid #efd4a2;outline-offset:3px}
/* Full-size celebration overlay interrupts only a milestone, never the normal answer rhythm. */
.god-unlock{position:absolute;z-index:50;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;
 background:radial-gradient(ellipse at 50% 42%,#49336cdd,#130f24f5 75%);color:#fceecf;text-align:center;isolation:isolate;
 animation:god-veil .7s ease-out both}
.god-unlock-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;position:relative;z-index:2;
 max-width:90%;max-height:100%;padding:12px;animation:god-reveal 2.4s cubic-bezier(.1,.7,.25,1) both}
.god-unlock-heading{font-family:Georgia,serif;font-weight:800;font-size:clamp(22px,4vw,44px);letter-spacing:.13em;
 color:#ffe9ab;text-shadow:0 0 20px #ffda8a,0 0 45px #d2aaff}
.god-unlock-content img{display:block;width:auto;height:min(47%,210px);min-height:0;max-height:42vh;max-width:65%;object-fit:contain;
 border-radius:12px;filter:drop-shadow(0 0 20px #ffd18b99);animation:god-float 2.3s ease-in-out infinite alternate}
.god-unlock-content strong{font-size:clamp(14px,2vw,22px);color:#fffaf2}
#god-unlock-power{font-size:clamp(11px,1.5vw,15px);color:#f6dfb5;font-weight:670}
.god-unlock-continue{border:1px solid #ebca9a;color:#261b38;background:#ffe5a6;font-weight:850;font-size:13px;
 border-radius:10px;min-height:39px;padding:7px 21px;margin-top:2px;cursor:pointer;touch-action:manipulation}
.god-unlock-sparkles{position:absolute;inset:0;z-index:1;pointer-events:none}
.god-unlock-sparkles i{position:absolute;left:50%;top:50%;height:11px;width:11px;background:#ffe8aa;
 clip-path:polygon(50% 0,62% 36%,100% 50%,62% 64%,50% 100%,38% 64%,0 50%,38% 36%);
 box-shadow:0 0 20px #ffe7a1;animation:god-spark 2.6s ease-in-out infinite;opacity:.85}
.god-unlock-sparkles i:nth-child(1){--sx:-142px;--sy:-88px;animation-delay:0s}
.god-unlock-sparkles i:nth-child(2){--sx:135px;--sy:-110px;animation-delay:-.5s}
.god-unlock-sparkles i:nth-child(3){--sx:-115px;--sy:100px;animation-delay:-1s}
.god-unlock-sparkles i:nth-child(4){--sx:120px;--sy:85px;animation-delay:-1.5s}
.god-unlock-sparkles i:nth-child(5){--sx:0px;--sy:-160px;animation-delay:-.7s}
.god-unlock-sparkles i:nth-child(6){--sx:165px;--sy:0px;animation-delay:-1.9s}
.god-unlock-sparkles i:nth-child(7){--sx:-162px;--sy:20px;animation-delay:-1.2s}
.god-unlock-sparkles i:nth-child(8){--sx:15px;--sy:145px;animation-delay:-2.1s}
.ceremony-active .parallax-backdrop img{transition:filter 2s ease,transform 2s ease;filter:blur(14px) brightness(.4)}
@keyframes god-veil{from{opacity:0}to{opacity:1}}
@keyframes god-reveal{0%{opacity:0;transform:scale(.65) translateY(28px)}30%{opacity:1;transform:scale(1.03) translateY(0)}100%{opacity:1;transform:scale(1) translateY(0)}}
@keyframes god-float{from{transform:translateY(2px)}to{transform:translateY(-5px)}}
@keyframes god-spark{0%{opacity:0;transform:translate(0,0) scale(.2) rotate(0)}40%{opacity:1}100%{opacity:0;transform:translate(var(--sx),var(--sy)) scale(1.7) rotate(160deg)}}
.award-card{position:relative;gap:6px;justify-content:flex-start}
.award-locked .award-preview-image{filter:grayscale(.95) brightness(.56);opacity:.68}
.award-locked .award-status{color:#f4d69c}
.award-card .award-power{font-size:11px;line-height:1.35;color:#f7e8c5;font-weight:650}
.award-card .award-status{font-size:10px;line-height:1.3;color:#ccbad7}
@media(max-width:650px){
 .earned-badges{max-width:calc(100% - 139px)!important}
 .next-god{width:127px;min-height:49px;top:4px;right:4px;padding:4px;gap:5px;border-radius:7px}
 .next-god img{height:38px;width:29px;flex-basis:29px}
 .next-god strong{font-size:9px}.next-god small{font-size:9px}.next-god-bar{height:3px}
 .god-unlock-content{gap:4px;padding:8px}
 .god-unlock-heading{font-size:25px}.god-unlock-content img{max-height:min(36vh,145px)}
 #god-unlock-power{font-size:11px}
 .god-unlock-continue{min-height:34px;font-size:12px}
 .god-unlock-sparkles i:nth-child(n){--sy:calc(var(--sy) * .64);--sx:calc(var(--sx) * .64)}
 .award-card .award-power{font-size:9px}.award-card .award-status{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
 .god-unlock,.god-unlock-content,.god-unlock-content img,.god-unlock-sparkles i{animation:none!important}
}

/* v0.6.2: Study shuffle, positioned beside the collection filter. */
.study-filter-controls{display:flex;gap:9px;align-items:center;min-width:0}
.study-shuffle{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:46px;padding:8px 13px;border:0;border-radius:11px;background:#49335f;color:#f6e7ff;font:inherit;font-size:13px;font-weight:740;white-space:nowrap;cursor:pointer;touch-action:manipulation}
.study-shuffle svg{width:19px;height:19px;flex:none}
.study-shuffle:hover,.study-shuffle:focus-visible{background:#765295;color:#fff}
.study-shuffle:focus-visible{outline:3px solid #dbc4ff;outline-offset:2px}
.study-shuffle:active svg{transform:rotate(35deg)}
@media(max-width:420px){
 .study-era-dropdown{min-width:116px;max-width:44vw}
 .study-era-dropdown summary{padding:12px 29px 12px 11px}
 .study-shuffle{min-width:43px;padding:8px 10px}
 .study-shuffle span{display:none}
 .study-tools{gap:6px}
 .study-count{font-size:10px;white-space:nowrap}
}

/* v0.7.0: reward-set archive and renewable Art Card gallery. */
.settings-buttons .clear-awards{border-color:#a8767c!important;color:#e2aaaa!important;background:#3c253c!important}
.reward-tabs{display:flex;gap:5px;margin:0 0 13px;flex-wrap:wrap}
.reward-tabs button{font:600 12px/1.2 system-ui,sans-serif;min-height:36px;padding:8px 11px;border-radius:9px;border:1px solid #6b5385;background:#2d203e;color:#ebd9f9;cursor:pointer}
.reward-tabs button.active{background:#ad83d0;color:#140d20;border-color:#dfbded}
.art-cards-collection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:55vh;overflow-y:auto;padding:2px}
.art-reward-card{min-width:0;display:flex;flex-direction:column;gap:6px;padding:8px;background:#302241;color:#f7ecfc;border-radius:10px}
.art-reward-card img{width:100%;height:132px;object-fit:contain;background:#1c152b;border-radius:6px}
.art-reward-card strong{font-size:12px;line-height:1.3;max-height:45px;overflow:hidden}
.art-reward-card small{color:#d6bdde;font-size:10px}
.art-reward-actions{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-top:auto}
.art-reward-actions button,.art-reward-actions a{border:0;border-radius:6px;background:#765391;color:#fff;padding:7px;font-size:10px;font-weight:650;text-decoration:none;cursor:pointer}
.art-card-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;font-size:12px;color:inherit}
.art-card-pagination button{min-width:44px;min-height:38px;background:#59406e;border:0;border-radius:8px;color:#fff;font-size:20px;cursor:pointer}
.art-card-pagination button:disabled{opacity:.25}
.reward-set-heading{font-size:14px;margin:18px 0 6px}
#archived-awards-collection .awards-collection{margin-bottom:22px}
#awards-dialog{max-width:min(680px,calc(100vw - 16px))}
@media(max-width:400px){.art-cards-collection{gap:6px}.art-reward-card{padding:6px}.art-reward-card img{height:112px}.reward-tabs{gap:3px}.reward-tabs button{font-size:10px;padding:7px}}
.restore-label{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid #79618b;border-radius:8px;padding:9px 13px;background:#3b294e;color:#f5e6ff;font-size:12px;font-weight:700;min-height:38px}

/* v0.7.1: Help and Rewards are separate, compact top-bar tools. */
.top-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.top-actions .icon-button{width:42px;height:42px;border:0!important;border-radius:50%;background:#4a365f!important;color:#f8e9ff!important;display:grid;place-items:center;padding:0;touch-action:manipulation}
.top-actions .icon-button:hover{background:#6a4b83!important}
.top-actions .icon-button svg{width:21px;height:21px;display:block}
.settings-dialog{max-width:510px}
.settings-dialog .help-text p{font-size:13px;line-height:1.55;margin:0 0 14px;color:#ece0f6}
.rewards-score{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0 0 8px}
.reward-stat{background:#302141;border:1px solid #513965;border-radius:9px;min-width:0;padding:9px 4px;text-align:center;display:flex;flex-direction:column;gap:3px}
.reward-stat span{font-size:10px;color:#cdb9da;letter-spacing:.01em}
.reward-stat strong{font-size:clamp(17px,2.5vw,24px);font-variant-numeric:tabular-nums;color:#fbebff}
.reward-stat.main strong{color:#ffe2a0}
.rewards-lifetime{font-size:11px;color:#ccb6da;margin:8px 0 12px;text-align:center}
.rewards-report{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 9px;align-items:end;background:#2a1d3a;padding:10px;border-radius:11px;margin-bottom:16px}
.rewards-report label{grid-column:1/-1;color:#e1d0e9;font-size:12px;font-weight:700}
.rewards-report input,.personal-power-dialog input{min-width:0;width:100%;font:inherit;color:#fff;background:#21152f;border:1px solid #725b8a;border-radius:8px;min-height:43px;padding:9px 11px;font-size:14px}
.rewards-report #report-download{margin:0;white-space:nowrap}
.rewards-heading{font-size:14px;font-weight:750;color:#f6e7ff;margin:18px 0 8px}
.rewards-heading small{display:block;font-size:11px;font-weight:400;color:#cbb8d7;margin-top:3px}
.unified-reward-grid,.awards-collection.unified-reward-grid,.art-cards-collection.unified-reward-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:none;overflow:visible;padding:0;margin:0 0 9px}
#art-cards-collection:empty{display:none}
.award-card,.art-reward-card{height:auto;min-height:0}
.award-personal{font-size:11px;line-height:1.4;color:#f4d5ff;font-weight:700;overflow-wrap:anywhere}
.award-card-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:auto}
.award-card-actions button{min-height:34px;padding:6px 8px;font-size:10px}
.more-art-cards,.rewards-clear button,.personal-power-actions button{border:1px solid #8d6fa3;background:#573c73;color:#fff;border-radius:8px;padding:10px 15px;font:700 12px system-ui,sans-serif;cursor:pointer}
.more-art-cards{width:100%;margin:2px 0 12px}
.rewards-actions{margin-top:16px;border-top:1px solid #4a355b;padding-top:14px}
.rewards-actions .awards-download{margin-bottom:6px;min-height:44px}
.rewards-clear{font-size:11px;color:#cdbed4;margin-top:12px}
.rewards-clear summary{cursor:pointer;color:#c9a8c7;font-weight:700}
.rewards-clear p{line-height:1.5;margin:8px 0}
.rewards-clear button{background:#5a303e;border-color:#8b5367}
.personal-power-dialog{max-width:460px}
.personal-power-dialog label{display:block;font-size:12px;margin:12px 0 6px;font-weight:700;color:#f0dcff}
.personal-power-default{font-size:13px;color:#f2d39c;font-weight:700}
.personal-power-actions{display:flex;gap:9px;margin-top:16px}
.personal-power-actions button{flex:1}
.personal-power-actions #personal-power-cancel{background:transparent;color:#e6d7ef}
.unlock-personal-wrap{display:flex;flex-direction:column;gap:4px;align-items:center;max-width:min(94%,330px);width:100%;font-size:11px;color:#f6e5d0}
.unlock-personal-wrap input{width:100%;min-height:37px;font:14px system-ui,sans-serif;border-radius:8px;border:1px solid #b6a4c8;background:#20152bdc;color:#fff;padding:6px 10px;outline-offset:1px}
.god-unlock-content{overflow-y:auto;overscroll-behavior:contain}
@media(max-width:650px){
 .top-actions{gap:5px}.top-actions .icon-button{width:35px;height:35px}.top-actions .icon-button svg{width:19px;height:19px}
 .rewards-report{grid-template-columns:minmax(0,1fr)}.rewards-report #report-download{width:100%}
 .rewards-score{gap:3px}.reward-stat{padding:8px 2px}.reward-stat strong{font-size:17px}.reward-stat span{font-size:9px}
 .unified-reward-grid,.awards-collection.unified-reward-grid,.art-cards-collection.unified-reward-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .unlock-personal-wrap{gap:2px;font-size:10px}.unlock-personal-wrap input{min-height:33px;padding:5px 8px;font-size:13px}
 .god-unlock-content img{max-height:min(27vh,115px)}
 .god-unlock-content{max-height:100%;justify-content:safe center}
}
@media(max-width:370px){.brand-logo{width:29px!important;height:auto!important}.main-nav .nav-link{padding:6px 12px}.top-actions .icon-button{width:33px;height:33px}}

/* v0.7.2: accessible subject selector beside Featured / All */
.photo-kind-select{appearance:none;-webkit-appearance:none;min-height:35px;padding:7px 25px 7px 10px;max-width:135px;border:1px solid #7d6093;border-radius:9px;background:#4a355e;color:#f8eaff;font:700 12px system-ui,sans-serif;cursor:pointer;outline-offset:2px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23f0dafc' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center;background-size:15px}
.photo-kind-select:disabled{opacity:.55}
.photo-kind-select:focus-visible{outline:2px solid #dfc3fb}
.art-personal-power{color:#e7cdff!important;font-weight:700;overflow-wrap:anywhere}
@media(max-width:420px){.photo-kind-select{max-width:94px;min-height:33px;padding:5px 18px 5px 7px;font-size:10px;background-size:12px;background-position:right 4px center}.game-tools{gap:5px!important;flex-wrap:wrap}.source-toggle{padding-left:7px!important;padding-right:7px!important}}

/* v1.0: invitation, god-versus-god end card, and reward-ceremony share control */
.unlock-personal-wrap label{display:block;font-weight:700;color:#f6e5d0}
.unlock-share-row{display:flex;gap:6px;width:100%;align-items:stretch}
.unlock-share-row input{flex:1;min-width:0;width:auto}
.unlock-share-row #unlock-share{flex:0 0 auto;min-height:37px;padding:5px 12px;border:1px solid #d7bc83;border-radius:8px;background:#f7d999;color:#31213c;font:800 12px system-ui,sans-serif;cursor:pointer}
.unlock-share-row #unlock-share:hover{background:#ffecc1}
.rewards-challenge{display:block;width:100%;padding:12px;border:1px solid #cba57b;border-radius:10px;color:#281b34;background:#f6dba3;font:800 13px system-ui,sans-serif;cursor:pointer;margin:10px 0 17px}
.rewards-challenge:hover{background:#ffe7b9}
.challenge-dialog{width:min(calc(100vw - 22px),570px);max-height:calc(100dvh - 22px);overflow-y:auto}
.challenge-message{color:#fff6e9;text-align:center;font:650 clamp(15px,2.9vw,20px) Georgia,serif;margin:0 0 16px;line-height:1.4}
.challenge-versus{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);gap:8px;align-items:center}
.challenge-player{border:1px solid #70577f;border-radius:15px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;padding:11px 7px;background:#2d2140;text-align:center}
.challenge-player-label{font-size:11px;font-weight:750;letter-spacing:.04em;color:#e9cfff}
.challenge-player img{display:block;max-width:100%;width:105px;height:139px;object-fit:contain;filter:drop-shadow(0 8px 10px #0a061c80)}
.challenge-player.waiting img{filter:grayscale(1);opacity:.4}
.challenge-player.waiting{border-style:dashed;background:#211a2d}
.challenge-player strong{color:#fff2d7;overflow-wrap:anywhere;line-height:1.25;font-size:14px}
.challenge-player small{min-height:13px;color:#ead1a2;font-size:11px}
.challenge-score{font-size:18px;color:#fff;font-weight:800;font-variant-numeric:tabular-nums}
.challenge-vs{color:#ecc37c;font-size:15px;font-weight:850;text-align:center}
.challenge-note{color:#d1b8db;line-height:1.6;font-size:12px;margin:17px 0 13px;text-align:center;overflow-wrap:anywhere}
.challenge-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px}
.challenge-actions button{border:1px solid #d4b27f;border-radius:9px;background:#f7dea8;color:#30213c;min-height:43px;padding:9px 14px;font:800 12px system-ui,sans-serif;cursor:pointer;flex:1 1 138px}
.challenge-actions #challenge-copy{background:#3c2d54;color:#f7eafa;border-color:#867095}
.challenge-actions button[hidden]{display:none!important}
.challenge-feedback{min-height:18px;color:#f7d998;font-size:12px;text-align:center;margin:12px 0 0}
@media(max-width:430px){.challenge-dialog{padding:14px}.challenge-player img{width:75px;height:104px}.challenge-player strong{font-size:12px}.challenge-versus{gap:5px;grid-template-columns:minmax(0,1fr) 21px minmax(0,1fr)}.challenge-vs{font-size:12px}.unlock-share-row #unlock-share{padding:4px 8px;font-size:11px}}

.personal-power-share-row{display:flex;align-items:center;gap:7px}
.personal-power-share-row input{flex:1;min-width:0}
.personal-power-share-row button{border:1px solid #d7bc83;background:#f7d999;color:#31213c;border-radius:8px;padding:8px 13px;font:800 12px system-ui,sans-serif;min-height:43px;white-space:nowrap;cursor:pointer}
