:root {
  --surface: #142721;
  --panel: #1c332b;
  --ink: #f5eddb;
  --muted: #bac8bd;
  --gold: #f0ce86;
  --line: #cdb17455;
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
.game-home { margin: 0; background: #101f1b; color: var(--ink); font-family: var(--sans); }
.game-home * { box-sizing: border-box; }
.game-home a { text-decoration: none; }
.home-header {
  position: absolute; z-index: 1; top: 0; left: 0; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(20px,5vw,84px); border-bottom: 1px solid #f0ce8633;
  background: linear-gradient(#101b17ba,#101b1744);
}
.home-brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.home-brand strong,.home-brand small { display: block; }
.home-brand strong { font: 700 22px/1.15 var(--serif); letter-spacing: .12em; }
.home-brand small { margin-top: 4px; color: #dfd8c6; font-size: 11px; }
.brand-seal { width: 39px; height: 39px; display: grid; place-items: center; border: 3px double var(--gold); border-radius: 5px; color: var(--gold); font: 700 23px var(--serif); }
.home-header nav { display: flex; gap: clamp(14px,4vw,38px); }
.home-header nav a { color: var(--ink); font-size: 14px; padding: 8px 0; }
.home-header nav a:hover { color: var(--gold); }
.home-hero { min-height: min(760px, 93svh); position: relative; isolation: isolate; display: flex; align-items: center; background: #192822; }
.home-hero::before,.home-hero::after,.home-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.home-backdrop { object-fit: cover; object-position: 50% 54%; }
.home-hero::before { content: ""; z-index: 0; pointer-events: none; background: linear-gradient(90deg,#101e19 2%,#101e19ec 21%,#101e1970 49%,transparent 77%); }
.home-hero::after { content: ""; z-index: 0; pointer-events: none; background: linear-gradient(0deg,#101f1b,transparent 25%,transparent 81%,#0a120f80); }
.hero-content { position: relative; z-index: 1; width: min(650px,100%); padding: 118px clamp(20px,7.5vw,115px) 108px; }
.hero-label { color: var(--gold); margin: 0 0 25px; font-size: 13px; letter-spacing: .15em; }
.hero-content h1 { font: 700 clamp(70px,9vw,132px)/1.07 var(--serif); letter-spacing: .09em; margin: 0; white-space: nowrap; text-shadow: 0 4px 28px #0e1714c0; }
.hero-subtitle { font: 700 clamp(25px,3.7vw,44px)/1.35 var(--serif); color: var(--gold); margin: 10px 0 18px; letter-spacing: .14em; }
.hero-intro { max-width: 345px; color: #edeee4; margin: 0 0 27px; line-height: 1.8; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions a { display: inline-flex; gap: 24px; align-items: center; justify-content: center; min-height: 48px; padding-inline: 20px; }
.home-section { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px,5vw,62px) 34px; }
.home-section-heading { display: flex; align-items: baseline; gap: 14px; justify-content: space-between; margin: 0 0 14px; }
.home-section h2 { font: 700 clamp(24px,3vw,32px)/1.3 var(--serif); margin: 0; }
.home-section-heading span,.home-route p,.home-controls p { color: var(--muted); font-size: 13px; }
.home-route { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 0; margin: 0; }
.home-route li { min-width: 0; display: grid; grid-template-columns: 35% 1fr; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.home-route img { width: 100%; height: 100%; min-height: 135px; object-fit: cover; }
.home-route li > div { padding: 16px 19px; }
.home-route h3 { margin: 6px 0; font: 700 24px/1.25 var(--serif); }
.home-route p { margin: 0; line-height: 1.55; }
.home-route .route-stop { color: var(--gold); }
.home-controls { padding-bottom: 42px; }
.home-controls h2 { font-size: 20px; margin-bottom: 8px; }
.home-controls p { display: inline-block; margin: 4px 32px 0 0; line-height: 1.8; }
.home-controls strong { color: var(--ink); margin-right: 5px; }
.home-controls kbd { color: var(--gold); padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; }
@media(max-width:700px) {
  .home-header { padding-block: 13px; }
  .home-hero { align-items: end; min-height: 660px; min-height: min(760px, calc(100svh + 14px)); }
  .home-backdrop { object-position: 52% 35%; height: 85%; }
  .home-hero::before { background: linear-gradient(0deg,#101f1b 10%,#101f1bf0 25%,#101f1b1a 76%); }
  .hero-content { padding: 104px 20px 49px; }
  .hero-label { margin-bottom: 10px; }
  .hero-intro { margin-bottom: 19px; }
  .home-route { grid-template-columns: 1fr; }
  .home-route img { min-height: 108px; max-height: 130px; }
}
#studyEntry,#studyHud,#studySpot { position: fixed; z-index: 32; font-family: var(--sans); }
#studyEntry[hidden],#studyHud[hidden],#studySpot[hidden],#coverActions[hidden] { display: none; }
#studyEntry { left: 50%; bottom: 64px; transform: translateX(-50%); display: flex; gap: 10px; }
#studyHud { left: max(15px,env(safe-area-inset-left)); right: max(69px,env(safe-area-inset-right)); top: max(14px,env(safe-area-inset-top)); display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; gap: 12px; }
.study-hud-location,.study-hud-actions { display: flex; align-items: center; gap: 9px; }
.study-hud-location { background: #12221ded; border: 1px solid var(--line); border-radius: 9px; padding: 5px 12px 5px 6px; color: var(--muted); font-size: 10px; }
.study-hud-location a { pointer-events: auto; color: var(--gold); text-decoration: none; font-size: 22px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 5px; border: 1px solid var(--line); }
.study-hud-location strong { display: block; color: var(--ink); font: 700 19px/1.1 var(--serif); }
.study-hud-actions button { pointer-events: auto; }
#studySpot { left: 50%; bottom: min(25%,122px); transform: translateX(-50%); white-space: nowrap; box-shadow: 0 0 28px #e6b95e50; }
.study-site #hud { display: none; }
.study-site #navChip { left: max(15px,env(safe-area-inset-left)); right: auto; top: 72px; padding: 9px 13px; border-radius: 8px; background: #142721ed; }
#navLabel { display: none; }
.study-site #navLabel { display: block; font-size: 10px; color: var(--muted); margin-bottom: 3px; }
.study-site #navTxt { color: var(--ink); font-size: 13px; }
.study-site #tip { z-index: 16; background: #10221ddc; color: #f4ecd9; border: 1px solid var(--line); }
.study-site #refresh,.study-site #fsBtn { background: #142721ed; border-color: var(--line); color: var(--ink); }
.study-site #cover { background: radial-gradient(ellipse at 50% 36%,#284438 0%,#142721 48%,#0b1613 100%); }
.study-site #coverEmblem { border: 4px double #d9b45e; border-radius: 14px; }
body.study-site.touch.mode-avatar #jumpBtn { display: none; }
.study-site #joy { width: 100px; height: 100px; right: max(18px,env(safe-area-inset-right)); bottom: 45px; border-color: #e0c78c88; background: #162a2399; }
.study-site #joyKnob { border-color: #edcf8f; background: #c6a766c9; }
.study-button { font: 650 14px/1.35 var(--sans); padding: 10px 16px; min-height: 42px; border-radius: 7px; border: 1px solid #fae2a4; background: linear-gradient(160deg,#f6db9a,#d7ad63); color: #211b12; cursor: pointer; }
.study-button:hover { filter: brightness(1.08); }
.study-button:focus-visible,.home-header a:focus-visible,#studyDialog :focus-visible,.study-hud-location a:focus-visible { outline: 2px solid #e6bd70; outline-offset: 3px; }
.study-button:disabled { opacity: .58; cursor: default; }
.study-secondary { background: #182a24ee; color: var(--ink); border-color: #d4b87d88; }
#coverActions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
#studyDialog { box-sizing: border-box; position: fixed; max-height: 91vh; max-height: 91dvh; width: min(850px,calc(100vw - 26px)); max-width: none; padding: 0; border: 1px solid #c8a56e; border-radius: 14px; color: var(--ink); background: radial-gradient(ellipse at 16% 0%,#274236,#142721 52%); overflow: auto; overscroll-behavior: contain; touch-action: pan-y; box-shadow: 0 24px 90px #0009; font-family: var(--sans); }
#studyDialog * { box-sizing: border-box; }
#studyDialog::backdrop { background: #07110da8; }
#studyDialog .study-body { padding: clamp(18px,4vw,33px); }
#studyDialog h2 { margin: 0 0 17px; max-width: 97%; color: var(--ink); font: 700 clamp(22px,3.7vw,34px)/1.28 var(--serif); }
#studyDialog p { line-height: 1.65; margin: 8px 0 15px; }
#studyDialog .study-kicker { color: var(--gold); font-size: 12px; font-weight: 680; margin-top: 0; letter-spacing: .09em; }
.study-close { float: right; margin: -4px -3px 4px 13px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #142721; color: var(--ink); font-size: 24px; cursor: pointer; }
.study-question-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(12px,3vw,26px); }
.study-evidence,.study-answer-panel { min-width: 0; }
.study-quotation { margin: 0 0 12px; border: 1px solid #cdb17477; border-left: 3px solid #d9b56d; border-radius: 6px; background: #0d1e19; padding: 15px 17px; }
.study-quotation blockquote { margin: 0 0 8px; color: var(--gold); font: 700 clamp(20px,3vw,25px)/1.5 var(--serif); }
.study-quotation figcaption,.study-figure figcaption { color: var(--muted); font-size: 13px; }
.study-figure { margin: 0 0 12px; }
.study-figure img,.study-detail img { width: 100%; max-height: min(34vh,270px); object-fit: contain; display: block; background: #0b1613; border-radius: 7px; }
.study-figure figcaption { margin: 7px 0; }
.study-detail { margin: 0 0 10px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; }
.study-detail summary { cursor: pointer; min-height: 26px; font-weight: 650; color: var(--gold); }
.study-detail img,.study-detail .study-figure { margin-top: 8px; }
.study-detail p { font-size: 13px; }
.study-choices { display: grid; gap: 8px; }
.study-choices button { background: #213a30; color: var(--ink); text-align: left; border-color: var(--line); }
.study-choices .correct { background: #244b38; border-color: #89bf9e; opacity: 1; }
.study-choices .incorrect { background: #432b27; border-color: #d89479; }
.study-feedback { min-height: 24px; color: #f3cf9e; font-size: 13px; }
.study-result { position: relative; background: #0e241c; padding: 16px; border: 1px solid #c9a96e; border-radius: 9px; }
.study-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.study-stamp { display: inline-flex; border: 3px double #e4a984; border-radius: 6px; color: #ffe2bd; background: #6b392d; padding: 7px 10px; font-weight: 800; transform: rotate(-5deg); }
.study-earned .study-stamp { animation: studyStamp .48s cubic-bezier(.2,.8,.3,1.25) both; }
.study-card { display: grid; gap: 6px; padding: 11px; border: 1px solid #b89b64; border-radius: 9px; background: #253e32; color: var(--ink); text-align: left; min-height: 60px; align-content: end; }
.study-card img { width: 100%; height: 118px; object-fit: cover; border-radius: 5px; }
.study-card span { color: var(--muted); font-size: 12px; }
.study-card-pending { min-height: 100px; border-style: dashed; background: #11241c; border-color: var(--line); color: var(--muted); }
button.study-card { cursor: pointer; font: inherit; }
.study-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 12px 0; }
.study-reward-card { display: inline-block; margin: 8px 0 0 12px; padding: 8px 10px; background: #f0ce86; color: #32200d; border-radius: 5px; font-size: 14px; }
.study-earned .study-reward-card { animation: studyCard .55s .1s ease-out both; }
.study-sparks { position: absolute; top: 32px; left: 76px; pointer-events: none; }
.study-sparks i { position: absolute; width: 9px; height: 9px; background: #f3bf5f; clip-path: polygon(50% 0,65% 35%,100% 50%,65% 65%,50% 100%,35% 65%,0 50%,35% 35%); animation: studySpark .75s ease-out both; }
.study-keepsake-preview {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 10px 13px;
  text-align: left; color: #f9dda2; background: linear-gradient(105deg,#284036,#162720);
}
.study-keepsake-preview .study-keepsake-card { width: 58px; flex: 0 0 58px; border-width: 2px; border-radius: 5px; }
.study-keepsake-preview .study-keepsake-frame { inset: 3px; border-width: 1px; border-radius: 3px; }
.study-keepsake-preview .study-keepsake-seal,.study-keepsake-preview .study-keepsake-title { display: none; }
#studyDialog[data-view="keepsake"] {
  width: min(690px,calc(100vw - 22px)); border-color: #cba365; text-align: center;
  background: radial-gradient(ellipse at 50% 36%,#493419 0%,#242a20 32%,#101d18 71%);
}
#studyDialog[data-view="keepsake"]::backdrop { background: #080c0bed; }
#studyDialog[data-view="keepsake"] h2 { margin: 0 0 7px; max-width: none; color: #ffe9b8; }
#studyDialog[data-view="keepsake"] .study-kicker { margin-bottom: 6px; }
.study-keepsake-layout { display: grid; gap: 12px; }
.study-keepsake-stage {
  display: grid; place-items: center; position: relative; isolation: isolate;
  padding: 14px 0; perspective: 850px;
}
.study-keepsake-card {
  position: relative; isolation: isolate; width: min(246px,63vw,38dvh); aspect-ratio: 3 / 4;
  overflow: hidden; border: 4px solid transparent; border-radius: 14px;
  background: linear-gradient(#14271d,#14271d) padding-box,
    linear-gradient(125deg,#6c401d 0%,#f7d38d 16%,#fff0b8 23%,#956030 42%,#85542a 59%,#ffdf99 78%,#8e5b2d 100%) border-box;
  box-shadow: 0 0 20px #ffcd7644,0 14px 35px #0009;
}
.study-keepsake-photo {
  position: absolute; inset: 0 0 auto; height: 86%; width: 100%;
  object-fit: cover; object-position: center 35%; filter: saturate(.85) sepia(.18);
}
.study-keepsake-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,#47311623,transparent 22%,transparent 43%,#1a2a1ac7 70%,#18261c 87%),
    repeating-radial-gradient(ellipse at 50% 108%,transparent 0 8px,#f9cf7733 9px 10px,transparent 11px 16px);
  background-blend-mode: normal;
}
.study-keepsake-frame { position: absolute; inset: 7px; border: 3px double #f6d998b8; border-radius: 7px; z-index: 1; pointer-events: none; }
.study-keepsake-frame::before,.study-keepsake-frame::after {
  content: ""; position: absolute; top: 3px; width: 22px; height: 22px; border-top: 2px solid #ffe9a9;
  background: repeating-linear-gradient(135deg,#e8b87700 0 5px,#dfb77888 6px 7px,#e8b87700 8px 11px);
}
.study-keepsake-frame::before { left: 3px; border-left: 2px solid #ffe9a9; }
.study-keepsake-frame::after { right: 3px; border-right: 2px solid #ffe9a9; }
.study-keepsake-seal {
  position: absolute; right: 12%; bottom: 26%; z-index: 2; display: grid;
  padding: 4px; gap: 2px; background: #91392a; color: #ffe3aa; border: 3px double #ffd59d; border-radius: 3px;
  font: 700 11px/1.1 var(--serif); transform: rotate(-8deg); box-shadow: 0 3px 8px #0008;
}
.study-keepsake-title {
  position: absolute; left: 9%; right: 9%; bottom: 6%; z-index: 2; display: grid; gap: 4px;
  color: #ffe6ac; text-align: center; text-shadow: 0 2px 5px #0a160e;
}
.study-keepsake-title strong { font: 700 clamp(26px,5vw,44px)/1.08 var(--serif); letter-spacing: .11em; }
.study-keepsake-title span { font: 600 clamp(9px,2vw,12px)/1.35 var(--sans); letter-spacing: .13em; }
.study-keepsake-details { display: grid; justify-items: center; gap: 12px; }
.study-gift-progress { margin: 13px 0; padding: 12px 15px; border: 1px solid #c5a46170; border-radius: 8px; background: #152820; text-align: left; }
.study-keepsake-details .study-gift-progress { margin: 0; width: min(100%,410px); }
.study-gift-progress h3 { margin: 0 0 5px; font: 700 17px var(--serif); color: #f9dfaa; }
.study-gift-count { color: #f4cc7e; font-size: 13px; }
.study-gift-progress progress { display: block; appearance: none; width: 100%; height: 6px; margin-top: 6px; border: 0; border-radius: 4px; overflow: hidden; background: #0c1812; color: #edc77a; }
.study-gift-progress progress::-webkit-progress-bar { background: #0c1812; }
.study-gift-progress progress::-webkit-progress-value { background: linear-gradient(90deg,#b67a38,#ffde9a); }
.study-gift-progress progress::-moz-progress-bar { background: #edc77a; }
#studyDialog .study-gift-progress p { margin: 6px 0 1px; font-size: 14px; }
.study-keepsake-effects { position: absolute; inset: 0; pointer-events: none; }
.study-keepsake-reveal .study-keepsake-card { animation: studyKeepsakeCard 1.6s cubic-bezier(.22,.8,.28,1) both; }
.study-keepsake-reveal .study-keepsake-seal { animation: studyStamp .45s .95s cubic-bezier(.2,.8,.3,1.25) both; }
.study-keepsake-effects::before,.study-keepsake-effects::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px;
  border: 3px double #ffe6a1; border-radius: 50%; box-shadow: 0 0 35px #f8b857c7,inset 0 0 28px #f8b857a7;
  animation: studyKeepsakeHalo .92s .4s ease-out both;
}
.study-keepsake-effects::after { animation-delay: .56s; border-color: #f6b766; }
.study-keepsake-token { position: absolute; top: 50%; left: 50%; margin: -36px 0 0 -25px; width: 50px; height: 72px; object-fit: cover; border: 2px solid #eac780; border-radius: 5px; box-shadow: 0 0 16px #f5ba67; animation: studyKeepsakeJoin .62s ease-in both; }
.study-keepsake-particle { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; background: #ffe3a1; clip-path: polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%); animation: studyKeepsakeStars .92s calc(.45s + var(--spark-delay)) ease-out both; }
@keyframes studyKeepsakeCard {
  0%,32% { opacity: 0; transform: rotateY(-112deg) scale(.46); }
  61% { opacity: 1; transform: rotateY(13deg) scale(1.06); box-shadow: 0 0 59px #ffc36e; }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}
@keyframes studyKeepsakeJoin { 0% { opacity: 0; transform: translate(var(--source-x),var(--source-y)) rotate(var(--source-turn)); } 26%,59% { opacity: 1; } 100% { opacity: 0; transform: translate(0,0) scale(.18); } }
@keyframes studyKeepsakeHalo { from { opacity: .92; transform: scale(.2); } to { opacity: 0; transform: scale(3); } }
@keyframes studyKeepsakeStars { from { opacity: 1; transform: scale(1.45); } to { opacity: 0; transform: translate(var(--spark-x),var(--spark-y)) rotate(125deg) scale(.52); } }
@media (max-height:570px) and (min-width:590px) {
  #studyDialog[data-view="keepsake"] .study-body { padding: 14px 23px; }
  #studyDialog[data-view="keepsake"] h2 { font-size: 24px; }
  .study-keepsake-layout { grid-template-columns: .9fr 1.1fr; align-items: center; }
  .study-keepsake-stage { padding: 7px 0; }
  .study-keepsake-stage .study-keepsake-card { width: min(205px,calc((91dvh - 102px) * .75)); }
}
#studyDialog .study-note { font-size: 13px; color: var(--muted); }
.study-author-slot { padding: 12px; margin-bottom: 10px; border: 2px dashed #b9a475; border-radius: 8px; color: var(--gold); background: #101f18; }
.study-nameplates { grid-template-columns: repeat(auto-fit,minmax(70px,1fr)); }
.study-nameplates button { padding-inline: 8px; text-align: center; cursor: grab; }
.study-nameplates button:active { cursor: grabbing; }
#studyDialog .study-clue { background: #243b2c; border-left: 3px solid #deb66d; padding: 9px 11px; }
#studyRewardLayer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.study-burst {
  --burst-gold: #ffe6a1;
  position: absolute; left: 50%; top: clamp(63px,15vh,150px);
  display: grid; justify-items: center; transform: translateX(-50%);
  isolation: isolate; animation: studyBurstLife 1.48s both;
}
.study-burst-major { --burst-gold: #fff0b7; animation-duration: 1.75s; }
.study-burst-crest {
  display: grid; place-items: center; width: 64px; height: 64px; position: relative;
  color: #fff3cb; text-shadow: 0 1px 9px #ffc968bd;
  font: 700 30px/1 var(--serif);
  clip-path: polygon(50% 0,91% 18%,100% 50%,82% 83%,50% 100%,18% 83%,0 50%,9% 18%);
  background: linear-gradient(146deg,#fff7cf 3%,#b87932 22%,#fff1ab 46%,#704220 72%,#ffdd8c 91%);
  animation: studyCrestImpact .42s cubic-bezier(.18,.82,.27,1.12) both;
}
.study-burst-crest::before {
  content: ""; position: absolute; inset: 4px; z-index: -1;
  clip-path: inherit;
  background: radial-gradient(ellipse at 30% 10%,#366957,#142d25 63%);
}
.study-burst-ribbon {
  position: relative; margin-top: -4px; padding: 10px 37px 12px; min-width: min(220px,86vw);
  text-align: center; white-space: nowrap; color: var(--burst-gold);
  font: 700 clamp(16px,4vw,22px)/1.15 var(--serif); letter-spacing: .09em;
  text-shadow: 0 2px 9px #1a1b0d;
  clip-path: polygon(8% 0,92% 0,100% 50%,92% 100%,8% 100%,0 50%);
  background: linear-gradient(90deg,#ad723b,#fff3b1 28%,#d29a4d 65%,#ad723b);
  animation: studyRibbonIn .35s .06s cubic-bezier(.18,.82,.27,1) both;
}
.study-burst-ribbon::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; clip-path: inherit;
  background: linear-gradient(100deg,#183127,#376653 45%,#152d26);
}
.study-burst-ring,.study-burst-rays,.study-burst-shard {
  position: absolute; top: 32px; left: 50%;
}
.study-burst-ring {
  width: 124px; height: 124px; margin: -62px 0 0 -62px; border-radius: 50%;
  border: 2px solid var(--burst-gold);
  box-shadow: 0 0 14px #ffc16f, inset 0 0 12px #ffc16f;
  animation: studyBurstRing .72s ease-out both;
}
.study-burst-rays {
  width: min(400px,95vw); height: 150px; transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at center,#ffdf92b3,transparent 70%);
  clip-path: polygon(0 49%,30% 43%,13% 13%,45% 36%,50% 0,55% 36%,87% 13%,70% 43%,100% 49%,70% 56%,87% 86%,55% 64%,50% 100%,45% 64%,13% 86%,30% 56%);
  animation: studyBurstRays .72s ease-out both;
}
.study-burst-shard {
  width: 7px; height: 13px; background: var(--burst-gold);
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
  animation: studyBurstShard .82s var(--delay) cubic-bezier(.12,.62,.34,1) both;
}
@keyframes studyBurstLife { 0%,75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes studyCrestImpact { from { transform: scale(1.55); opacity: 0; } 46% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes studyRibbonIn { from { transform: scaleX(.25); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes studyBurstRing { from { transform: scale(.3); opacity: .85; } to { transform: scale(2.65); opacity: 0; } }
@keyframes studyBurstRays { from { transform: translate(-50%,-50%) scale(.45); opacity: .85; } to { transform: translate(-50%,-50%) scale(1.3); opacity: 0; } }
@keyframes studyBurstShard { from { opacity: 1; transform: rotate(var(--twist)) scale(1.5); } to { opacity: 0; transform: translate(var(--x),var(--y)) rotate(var(--twist)) scale(.4); } }
@keyframes studyStamp { from { opacity: 0; transform: rotate(-14deg) scale(2); } to { opacity: 1; transform: rotate(-5deg) scale(1); } }
@keyframes studyCard { from { opacity: 0; transform: translateY(22px) scale(.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes studySpark { from { opacity: 1; transform: scale(1.5); } to { opacity: 0; transform: translate(var(--x),var(--y)) scale(.3) rotate(80deg); } }
@media(max-width:575px) {
  .study-question-layout { grid-template-columns: 1fr; }
  .study-hud-actions { gap: 4px; }
  .study-hud-actions .study-button { padding-inline: 9px; }
  .study-card img { height: 83px; }
}
@media(prefers-reduced-motion:reduce) {
  .study-earned .study-stamp,.study-earned .study-reward-card { animation: none; }
  .study-keepsake-reveal .study-keepsake-card,.study-keepsake-reveal .study-keepsake-seal { animation: none; }
  .study-keepsake-effects { display: none; }
  .study-sparks { display: none; }
  .study-burst-ring,.study-burst-rays,.study-burst-shard { display: none; }
  .study-burst-crest,.study-burst-ribbon { animation: none; }
}
.home-header nav button { border: 1px solid var(--line); border-radius: 6px; background: #142721; color: var(--ink); cursor: pointer; padding: 5px 9px; }
#shareDialog { box-sizing: border-box; width: min(440px,calc(100vw - 26px)); max-height: 90dvh; padding: 20px; border: 1px solid #c8a56e; border-radius: 12px; background: var(--surface); color: var(--ink); }
#shareDialog::backdrop { background: #07110da8; }
#shareDialog h2 { font: 700 22px var(--serif); margin: 8px 0 15px; }
#shareDialog img { width: 100%; max-height: 42dvh; object-fit: contain; border-radius: 6px; }
#shareDialog p { line-height: 1.55; font-size: 14px; }
.study-feedback-source { display: block; margin-top: 4px; color: var(--muted); }
.study-knowledge-note { border-top: 1px solid var(--line); padding: 10px 0; }
#studyDialog .study-knowledge-note p { margin: 5px 0; }
.study-question-list { display: grid; gap: 7px; padding: 9px 0; }
.study-question-list button { text-align: left; }
.study-curator-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; list-style: none; margin: 15px 0; padding: 0; }
.study-curator-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #0f241c; }
.study-curator-card > strong { display: block; margin: 9px 0; }
.study-curator-card h3 { margin: 10px 0 6px; font: 700 20px/1.35 var(--serif); }
.study-curator-card img { width: 100%; height: clamp(100px,18vh,153px); object-fit: cover; border-radius: 5px; }
.study-curator-card .study-detail { margin: 10px 0 0; }
.study-curator-order { display: flex; gap: 6px; margin-bottom: 10px; }
.study-curator-order button { padding-inline: 12px; }
.study-curator-form > label,.study-curator-card label { display: block; margin: 10px 0; color: var(--gold); font-size: 14px; }
.study-curator-form input,.study-curator-form textarea,.study-curator-card select { display: block; width: 100%; min-height: 42px; margin-top: 5px; padding: 8px; color: var(--ink); background: #101f1b; border: 1px solid #b69d67; border-radius: 5px; font: inherit; }
.study-curator-form textarea { resize: vertical; }
.study-curator-form > button { margin: 0 8px 5px 0; }
.study-exhibition-intro { white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:675px) {
  .study-curator-list { grid-template-columns: 1fr; }
  .study-curator-card img { height: 125px; }
}
@media (max-width:410px) { .home-header nav { gap: 8px; } .home-header nav a { font-size: 12px; } }
