:root {
  color-scheme: dark;
  --ink: #f7f0e1;
  --muted: #aaa99f;
  --quiet: #777f86;
  --gold: #e8c783;
  --gold-bright: #f5d99c;
  --line: rgba(235, 214, 170, .17);
  --panel: rgba(23, 32, 46, .84);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--sans);
  background: #101725;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #101725; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 16% -8%, #253145 0, transparent 42%), radial-gradient(ellipse at 91% 24%, #182b3b 0, transparent 38%), #101725; color: var(--ink); overflow-x: hidden; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: .35; background-image: radial-gradient(#e9d19d 0.7px, transparent .7px); background-size: 67px 67px; mask-image: linear-gradient(#000, transparent 76%); }
.grain { position: fixed; z-index: 20; inset: 0; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"); }
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #f5d99c; outline-offset: 3px; }
.hidden { display: none !important; }
#app { min-height: 100vh; }

.library-screen { width: min(100%, 1120px); margin: auto; padding: 0 34px; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand { color: var(--ink); display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d1b77c; border-radius: 50%; box-shadow: inset 0 0 15px #bda26533, 0 0 18px #d6b87818; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 10px; height: 17px; border: 1px solid #e1ca93; border-radius: 2px 6px 3px 2px; transform: skewY(-8deg); }
.brand-mark::before { left: 6px; border-right: 0; }.brand-mark::after { right: 6px; border-left: 0; border-radius: 6px 2px 2px 3px; transform: skewY(8deg); }
.brand-mark span { position: absolute; z-index: 1; width: 1px; height: 18px; background: #e6d7b3; }.brand-mark i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #f5dd9e; box-shadow: 0 0 9px 3px #ebc56b77; }
.brand-copy { display: grid; line-height: 1.02; letter-spacing: .13em; }.brand-copy strong { font-size: 11px; font-weight: 700; }.brand-copy small { font-size: 9px; color: #b9a978; letter-spacing: .38em; margin-top: 4px; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }.page-wallet { display: flex; align-items: center; gap: 7px; min-width: 88px; padding: 9px 11px; border: 1px solid var(--line); background: rgba(235,210,152,.035); border-radius: 22px; }.page-wallet strong { font-size: 12px; font-variant-numeric: tabular-nums; }.page-wallet small { font-size: 10px; color: var(--muted); }.page-glyph { font-size: 14px; color: var(--gold); filter: drop-shadow(0 0 5px #e8c78399); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #bfc3c1; font-size: 17px; cursor: pointer; transition: .2s ease; }.icon-button:hover { color: var(--gold-bright); border-color: var(--line); background: #ffffff08; }.pause-button { border-color: var(--line); background: #182333; font-size: 14px; }

.hero { position: relative; min-height: 374px; display: grid; grid-template-columns: 1.07fr .93fr; align-items: center; gap: 20px; padding: 30px 6px 23px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding: 0 0 4px 6px; }.eyebrow { color: #c1ac78; font-size: 9px; font-weight: 700; line-height: 1.35; letter-spacing: .21em; margin: 0 0 11px; }.eyebrow-star { color: var(--gold-bright); font-size: 13px; margin-right: 7px; }
h1, h2, p { margin-top: 0; }.hero h1 { font: 400 clamp(42px, 5.1vw, 61px)/.99 var(--serif); letter-spacing: -.035em; margin: 0 0 15px; }.hero h1 em, h2 em { color: var(--gold); font-weight: 400; }.hero-subtitle { max-width: 460px; margin: 0; color: #bec0bd; font-size: 13px; line-height: 1.75; }.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 23px; }.button { min-height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border-radius: 7px; border: 1px solid transparent; padding: 0 16px; font-size: 11px; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: transform .2s, background .2s, border .2s, box-shadow .2s; }.button:hover { transform: translateY(-1px); }.button b { font-size: 15px; font-weight: 400; }.button-gold { color: #252536; background: linear-gradient(110deg, #e9d09a, #d6b87c); box-shadow: 0 8px 22px #d5b16b22; }.button-gold:hover { background: #f0dba9; box-shadow: 0 10px 30px #d5b16b33; }.button-quiet { color: #e4dfd2; background: #ffffff04; border-color: #ffffff16; }.button-quiet:hover { border-color: #d9bf8466; background: #ffffff08; }.button-outline { color: #ead5a2; background: transparent; border-color: #c4a76961; min-height: 35px; padding: 0 12px; font-size: 10px; white-space: nowrap; }.button-outline:hover { background: #e9c78312; border-color: #e5c982aa; }.tiny-spark { color: #dfc17b; font-size: 13px; }.hero-footnote { margin-top: 18px; display: flex; align-items: center; gap: 8px; color: #91999d; font-size: 9px; letter-spacing: .02em; }.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #8db9a2; box-shadow: 0 0 8px #8db9a2; }.foot-divider { color: #5e6b70; }

.hero-art { position: relative; height: 330px; min-width: 300px; isolation: isolate; }.hero-art::before { content: ""; position: absolute; inset: 16% 5% 6%; background: radial-gradient(ellipse, #b6934b1d 0, #77a5a322 34%, transparent 70%); z-index: -2; }.hero-orbit { position: absolute; width: 253px; height: 253px; top: 30px; left: 50%; border-radius: 50%; transform: translateX(-50%); border: 1px solid #dbc79020; }.orbit-one { width: 287px; height: 287px; top: 13px; border-style: dashed; border-color: #dfc57e25; animation: orbit 100s linear infinite; }.orbit-two { width: 225px; height: 225px; top: 44px; border-color: #a7cfc025; }
.portal-ring { position: absolute; border-radius: 50%; left: 50%; top: 45px; width: 169px; height: 207px; transform: translateX(-50%) rotate(10deg); border: 2px solid #d7bd7f; box-shadow: inset 0 0 25px #d5bb7f22, 0 0 20px #e5c57134, 0 0 60px #67beb355; }.portal-ring-back { left: calc(50% + 11px); top: 55px; width: 147px; height: 189px; border-color: #9ce0d77b; box-shadow: 0 0 28px #8ee2d677; transform: translateX(-50%) rotate(-10deg); }.portal-ring-front { display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse, #4aa9a766 0, #10293a88 62%, transparent 78%); }.portal-ring-front::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; border: 1px dashed #f0dda54d; }.portal-core { width: 76px; height: 105px; border-radius: 50%; background: radial-gradient(ellipse at 48% 41%, #baf4deaa 0, #4f9d9a54 42%, transparent 70%); filter: blur(7px); }
.open-book { position: absolute; z-index: 2; left: 50%; bottom: 23px; width: 236px; height: 83px; transform: translateX(-50%) perspective(360px) rotateX(16deg); filter: drop-shadow(0 10px 13px #0008); }.book-page { position: absolute; bottom: 0; width: 50%; height: 64px; background: linear-gradient(120deg, #e8d5a7, #aa8753); border: 1px solid #f0dda7; border-radius: 3px 0 4px 10px; }.page-left { left: 0; transform: skewY(7deg); transform-origin: right bottom; }.page-right { right: 0; border-radius: 0 3px 10px 4px; transform: skewY(-7deg); transform-origin: left bottom; background: linear-gradient(240deg, #f3e2bd, #b99968); }.book-page i { position: absolute; height: 1px; left: 16px; right: 22px; background: #7f6843a8; }.book-page i:nth-child(1) { top: 20px; }.book-page i:nth-child(2) { top: 29px; right: 35px; }.book-page i:nth-child(3) { top: 38px; right: 26px; }.book-spine { position: absolute; z-index: 2; bottom: 0; left: calc(50% - 4px); height: 68px; width: 8px; background: #51402f; clip-path: polygon(10% 0,100% 0,80% 100%,0 100%); }.hero-star { position: absolute; z-index: 3; color: #f2db9d; filter: drop-shadow(0 0 7px #ecd083); }.star-a { top: 46px; left: 21%; font-size: 15px; }.star-b { top: 126px; right: 11%; color: #afe9d5; font-size: 21px; }.star-c { top: 198px; left: 14%; color: #ecaeb6; font-size: 11px; }.hero-caption { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: #9c9c93; font-size: 8px; font-weight: 700; letter-spacing: .2em; white-space: nowrap; }.caption-line { width: 19px; height: 1px; background: #ccb57b; }

.daily-strip { display: flex; align-items: center; gap: 15px; border: 1px solid #d1b67439; background: linear-gradient(100deg, #273446bd, #202b36a8 60%, #28344488); border-radius: 10px; padding: 13px 17px; box-shadow: 0 10px 27px #0002; }.daily-emblem { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 1px solid #e1c78366; border-radius: 50%; background: #f2d58e0c; color: #f2d58e; font-size: 19px; box-shadow: inset 0 0 14px #f2d58e0c; }.daily-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }.daily-copy .eyebrow { margin: 0; font-size: 8px; }.daily-copy strong { font: 400 16px var(--serif); }.daily-copy small { color: #aeb3b0; font-size: 10px; }.daily-best { min-width: 34px; color: #d4bd81; font-size: 9px; font-weight: 700; letter-spacing: .08em; }.daily-best:not(:empty) { text-align: center; }.daily-strip .button b { margin-left: 5px; }

.section-block { padding-top: 47px; }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }.section-heading .eyebrow { margin-bottom: 6px; }.section-heading h2 { margin: 0; font: 400 28px/1.15 var(--serif); letter-spacing: -.025em; }.section-note { max-width: 190px; margin: 0 0 3px; color: #929a9a; text-align: right; font-size: 10px; line-height: 1.5; }
.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.world-card { position: relative; isolation: isolate; min-height: 150px; text-align: left; border: 1px solid #ffffff14; border-radius: 9px; background: linear-gradient(133deg, var(--card-sky), #192330 63%); padding: 16px 16px 14px; overflow: hidden; cursor: pointer; transition: transform .22s, border-color .22s, box-shadow .22s; }.world-card::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .66; background: radial-gradient(circle at 88% 13%, var(--card-glow), transparent 24%), linear-gradient(155deg, transparent 48%, #0a142299 100%); }.world-card::after { content: ""; position: absolute; z-index: -1; width: 119px; height: 119px; right: -19px; bottom: -37px; border: 1px solid color-mix(in srgb, var(--card-accent), transparent 50%); border-radius: 50%; box-shadow: 0 0 0 9px color-mix(in srgb, var(--card-accent), transparent 91%), 0 0 0 19px color-mix(in srgb, var(--card-accent), transparent 95%); }.world-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--card-accent), transparent 38%); box-shadow: 0 14px 28px #0004; }.world-card:active { transform: translateY(-1px); }.world-card-head { display: flex; align-items: center; justify-content: space-between; }.world-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--card-accent), transparent 58%); border-radius: 50%; color: var(--card-accent); font: 400 15px var(--serif); box-shadow: inset 0 0 13px color-mix(in srgb, var(--card-accent), transparent 88%); }.world-progress { color: #c6c5ba; font-size: 9px; }.world-card h3 { max-width: 225px; margin: 17px 0 4px; font: 400 16px/1.2 var(--serif); letter-spacing: -.01em; }.world-card p { max-width: 218px; margin: 0; color: #a6acab; font-size: 9px; line-height: 1.5; }.world-card-foot { position: absolute; display: flex; align-items: center; gap: 6px; left: 16px; bottom: 13px; color: #d2bd88; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }.world-card-foot span { font-size: 14px; line-height: .6; }

.companions-block { padding-top: 42px; }.companion-heading { margin-bottom: 12px; }.companion-summary { min-height: 76px; display: flex; align-items: center; gap: 13px; padding: 10px 14px; border: 1px solid #ffffff12; border-radius: 9px 9px 0 0; background: #e9d7a90a; }.companion-portrait { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #d9bf7b6e; background: radial-gradient(circle, #d9bf7b22, #203143); }.companion-text { flex: 1; min-width: 0; }.companion-text strong { display: block; font: 400 16px var(--serif); }.companion-text p { margin: 2px 0 0; color: #9fa8a7; font-size: 9px; }.ability-tag { color: #dfca93; border: 1px solid #d8c18747; border-radius: 20px; padding: 6px 10px; font-size: 9px; white-space: nowrap; }.roster-row { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding: 11px 0 12px; scrollbar-width: thin; scrollbar-color: #76684333 transparent; }.character-card { position: relative; flex: 0 0 86px; min-height: 103px; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 7px 4px 8px; color: #c6c6bd; border: 1px solid transparent; border-radius: 8px; background: #ffffff04; cursor: pointer; transition: .2s ease; }.character-card:hover { background: #ffffff08; border-color: #d6c58b2c; }.character-card.selected { border-color: #d7bd7b66; background: linear-gradient(180deg, #e5d09a12, #ffffff04); color: #f2ddaf; }.character-card.locked { filter: saturate(.5); }.character-avatar { width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 48% 38%, #e8d29526, #121d2b); }.character-card strong { max-width: 78px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; font-weight: 600; }.character-card small { color: #a9a59a; font-size: 8px; }.character-lock { position: absolute; top: 5px; right: 6px; font-size: 10px; color: #d9c689; }
.library-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 24px; padding: 17px 0 23px; border-top: 1px solid #ffffff11; color: #818a8c; font-size: 9px; }.library-footer > div { display: flex; align-items: center; gap: 7px; }.footer-mark { color: #c6aa6d; font-size: 14px; }.library-footer nav { display: flex; align-items: center; gap: 16px; }.library-footer button { border: 0; background: none; padding: 0; color: #b5b1a3; font-size: 9px; cursor: pointer; }.library-footer button:hover { color: var(--gold-bright); }

/* Modals */
.modal-shade { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 18px; background: #070d16bb; backdrop-filter: blur(9px); animation: fade-in .16s ease; }.modal { position: relative; width: min(100%, 560px); max-height: min(88vh, 750px); overflow-y: auto; border: 1px solid #ddc98d44; border-radius: 13px; background: radial-gradient(circle at 96% 5%, #42616a36, transparent 33%), linear-gradient(145deg, #202e3f, #151e2b 80%); box-shadow: 0 22px 75px #0009; padding: 23px; }.modal-close { position: absolute; right: 15px; top: 14px; width: 31px; height: 31px; border: 1px solid #ffffff16; border-radius: 50%; background: #ffffff06; color: #c7c6bb; font-size: 18px; cursor: pointer; }.modal h2 { max-width: 440px; margin: 0 40px 8px 0; font: 400 29px/1.08 var(--serif); }.modal-intro { max-width: 455px; margin: 0 0 18px; color: #aeb7b4; font-size: 11px; line-height: 1.7; }.modal-world-meta { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0 19px; }.meta-chip { padding: 6px 9px; border: 1px solid #ffffff15; border-radius: 20px; color: #c7c3b5; font-size: 9px; }.level-list { display: grid; gap: 8px; }.level-card { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #ffffff15; border-radius: 8px; background: #ffffff04; }.level-card.complete { border-color: #8fbc9a3c; }.level-card.locked { opacity: .46; }.level-number { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #cfb87455; border-radius: 50%; color: #e2ce98; font: 400 13px var(--serif); }.level-info strong { display: block; font: 400 14px var(--serif); }.level-info small { display: block; margin-top: 3px; color: #a6aeaa; font-size: 9px; line-height: 1.45; }.level-play { min-width: 64px; min-height: 31px; padding: 0 9px; border: 1px solid #d8c17d58; border-radius: 5px; color: #ead69f; background: #d4b66b0b; font-size: 9px; cursor: pointer; }.level-play:disabled { cursor: not-allowed; border-color: #ffffff14; color: #737a7b; background: transparent; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }.achievement-list { display: grid; gap: 8px; }.achievement-row { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #ffffff13; border-radius: 8px; background: #ffffff04; }.achievement-row.unlocked { border-color: #d8be7c40; background: #e9cb8010; }.achievement-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #d7bd7950; color: #ebd08a; }.achievement-row strong { font: 400 14px var(--serif); }.achievement-row p { margin: 3px 0 0; color: #a8b0ad; font-size: 9px; }.achievement-state { color: #a5adab; font-size: 8px; letter-spacing: .08em; }.achievement-row.unlocked .achievement-state { color: #dec888; }.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid #ffffff10; }.setting-row:last-of-type { border-bottom: 0; }.setting-row strong { display: block; font-size: 12px; font-weight: 600; }.setting-row small { display: block; margin-top: 4px; color: #a4aaa8; font-size: 9px; line-height: 1.5; }.switch { position: relative; flex: 0 0 42px; width: 42px; height: 24px; border: 1px solid #ffffff2b; border-radius: 20px; background: #0d1520; cursor: pointer; }.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #87908e; transition: .2s ease; }.switch[aria-checked="true"] { border-color: #cfb77199; background: #b89b5633; }.switch[aria-checked="true"]::after { left: 21px; background: #ead08d; box-shadow: 0 0 8px #e4c47955; }.modal-note { margin: 16px 0 0; padding: 10px; border-left: 2px solid #cfb77170; background: #ffffff04; color: #9ca7a5; font-size: 9px; line-height: 1.6; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(20px + var(--safe-bottom)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; border: 1px solid #d8c17a61; border-radius: 24px; background: #1d2c3aee; padding: 10px 15px; color: #f0dfb5; font-size: 10px; box-shadow: 0 9px 30px #0006; transition: .22s ease; white-space: nowrap; }.toast.visible { transform: translate(-50%, 0); opacity: 1; }

/* Portrait play screen */
.game-screen { position: relative; height: 100vh; height: 100dvh; min-height: 540px; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) 16px calc(7px + var(--safe-bottom)); background: radial-gradient(ellipse at 50% 32%, #26384a, #101725 66%); }.game-topbar { height: 47px; flex: 0 0 47px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; }.back-button { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 0; border: 0; background: none; color: #b9beb8; font-size: 10px; cursor: pointer; }.back-button span:first-child { color: #e4c984; font-size: 17px; }.game-heading { text-align: center; display: grid; gap: 1px; }.game-heading .eyebrow { margin: 0; font-size: 7px; }.game-heading strong { overflow: hidden; color: #f2ead9; text-overflow: ellipsis; white-space: nowrap; font: 400 15px var(--serif); }.game-topbar .pause-button { justify-self: end; }
.game-hud { display: flex; align-items: center; justify-content: space-between; min-height: 51px; flex: 0 0 51px; padding: 3px 5px 9px; }.hud-world { display: flex; align-items: center; gap: 8px; }.hud-world-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #ddc17c55; border-radius: 50%; color: #efdb9f; font-size: 13px; }.hud-world div, .hud-metric { display: grid; gap: 2px; }.hud-world small, .hud-metric small { color: #888f91; font-size: 7px; font-weight: 700; letter-spacing: .15em; }.hud-world strong { font: 400 13px var(--serif); }.hud-metric { min-width: 50px; text-align: center; }.hud-metric strong { color: #f1dfb1; font-size: 13px; font-variant-numeric: tabular-nums; }.hud-metric i { color: #929a99; font-size: 10px; font-style: normal; font-weight: 400; }.playfield-wrap { position: relative; min-height: 0; flex: 1; overflow: hidden; border: 1px solid #e3ca8a30; border-radius: 15px; background: #1d3041; box-shadow: inset 0 0 34px #060b1444, 0 12px 35px #0004; touch-action: none; }.playfield-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }.game-top-shade { position: absolute; pointer-events: none; inset: 0 0 auto; height: 68px; background: linear-gradient(#0b162288, transparent); }.game-controls { min-height: 69px; flex: 0 0 69px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 2px 0; }.control-hint { display: flex; align-items: center; gap: 9px; min-width: 124px; }.control-hint strong, .control-hint small { display: block; }.control-hint strong { color: #d9ddd4; font-size: 9px; font-weight: 600; }.control-hint small { margin-top: 3px; color: #8d9696; font-size: 8px; }.tap-icon { position: relative; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #e0c78053; border-radius: 50%; color: #e6cc8f; }.tap-icon i { position: relative; width: 8px; height: 10px; border: 1px solid #ead28f; border-radius: 5px 5px 4px 4px; }.tap-icon i::after { content: ""; position: absolute; left: 2px; bottom: -4px; width: 2px; height: 5px; background: #ead28f; border-radius: 2px; }.ability-button { display: flex; align-items: center; gap: 8px; min-width: 150px; min-height: 44px; padding: 5px 11px; border: 1px solid #dbbf7753; border-radius: 24px; background: linear-gradient(120deg, #283646, #192635); cursor: pointer; text-align: left; box-shadow: 0 5px 15px #0003; }.ability-button:disabled { opacity: .55; cursor: not-allowed; }.ability-orbit { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #d8bc7b66; border-radius: 50%; color: #e8d293; font-size: 15px; box-shadow: inset 0 0 13px #e2c37c18; }.ability-button-copy strong, .ability-button-copy small { display: block; }.ability-button-copy strong { color: #e9dfc4; font-size: 9px; font-weight: 600; }.ability-button-copy small { margin-top: 3px; color: #cfb675; font-size: 7px; font-weight: 700; letter-spacing: .13em; }.sound-mini { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #ffffff16; border-radius: 50%; color: #c3c6bf; background: #ffffff05; font-size: 14px; cursor: pointer; }.sound-mini.muted { color: #747c7e; }
.end-panel { position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; padding: 18px; background: #08111cc4; backdrop-filter: blur(6px); }.end-card { position: relative; width: min(100%, 385px); border: 1px solid #dfc57f64; border-radius: 14px; padding: 27px 23px 22px; text-align: center; background: radial-gradient(circle at 50% 0%, #50626e4a, transparent 43%), linear-gradient(145deg, #243243, #171f2d); box-shadow: 0 25px 70px #0008; animation: rise-in .24s ease; }.end-flourish { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-bottom: 13px; border: 1px solid #d7bf7a66; border-radius: 50%; color: #eed690; }.end-card .eyebrow { margin-bottom: 6px; }.end-card h2 { margin: 0; font: 400 28px/1.1 var(--serif); }.end-copy { margin: 10px auto 0; max-width: 290px; color: #b2b9b4; font-size: 10px; line-height: 1.65; }.reward-line { display: inline-flex; align-items: center; gap: 7px; margin: 14px 0 0; padding: 8px 12px; border: 1px solid #e5ca8045; border-radius: 22px; color: #ecd493; background: #edcf7b0a; font-size: 10px; }.end-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }.end-actions .button { width: 100%; font-size: 10px; }.end-actions .button-quiet { background: #ffffff05; }

@keyframes orbit { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 920px) {
  .library-screen { padding: 0 48px; }.hero { min-height: 394px; }.hero-art { transform: scale(1.04); }.world-card { min-height: 161px; padding: 18px; }.world-card h3 { margin-top: 20px; font-size: 17px; }
}
@media (max-width: 760px) {
  .library-screen { padding: 0 20px; }.hero { grid-template-columns: 1.05fr .8fr; min-height: 346px; }.hero h1 { font-size: clamp(39px, 6vw, 54px); }.hero-art { min-width: 230px; transform: scale(.9); margin: 0 -12px; }.world-grid { gap: 9px; }.world-card { padding: 13px; min-height: 143px; }.world-card h3 { font-size: 14px; }.world-card p { max-width: 160px; font-size: 8px; }.world-card-foot { left: 13px; bottom: 11px; }.daily-strip { gap: 11px; padding: 11px 12px; }.daily-copy strong { font-size: 14px; }
}
@media (max-width: 560px) {
  .library-screen { padding: 0 16px; }.topbar { height: 67px; }.brand-mark { width: 31px; height: 31px; }.topbar-actions { gap: 4px; }.page-wallet { min-width: 74px; padding: 7px 8px; gap: 5px; }.page-wallet small { display: none; }.icon-button { width: 32px; height: 32px; }.hero { grid-template-columns: 1fr; min-height: 0; padding: 31px 2px 8px; }.hero-copy { padding: 0; }.hero h1 { max-width: 350px; font-size: 48px; }.hero-subtitle { max-width: 360px; font-size: 12px; }.hero-actions { margin-top: 17px; }.hero-footnote { margin-top: 13px; }.hero-art { position: absolute; opacity: .45; right: -105px; top: 30px; width: 300px; height: 300px; min-width: 0; transform: scale(.84); transform-origin: center; pointer-events: none; }.hero-art::before { inset: 10% 0 0; }.hero-copy { position: relative; z-index: 4; text-shadow: 0 1px 10px #101725; }.hero-art .open-book { bottom: 20px; }.daily-strip { display: grid; grid-template-columns: 37px 1fr auto; gap: 9px; margin-top: 21px; padding: 11px; }.daily-emblem { width: 34px; height: 34px; flex-basis: 34px; }.daily-copy small { font-size: 9px; }.daily-best { grid-column: 3; grid-row: 1; align-self: start; }.daily-strip .button { grid-column: 2 / 4; justify-self: start; min-height: 31px; margin-top: 2px; }.section-block { padding-top: 34px; }.section-heading { align-items: start; margin-bottom: 13px; }.section-heading h2 { font-size: 24px; }.section-note { max-width: 120px; font-size: 8px; }.world-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }.world-card { min-height: 141px; padding: 12px; }.world-card h3 { max-width: 155px; margin-top: 15px; font-size: 13px; }.world-card p { max-width: 148px; font-size: 8px; }.world-card-foot { left: 12px; font-size: 7px; }.world-card::after { right: -43px; bottom: -45px; }.companion-heading .section-note { max-width: 112px; }.companion-summary { min-height: 67px; padding: 8px 10px; }.companion-portrait { width: 46px; height: 46px; }.ability-tag { padding: 5px 8px; font-size: 8px; }.library-footer { align-items: start; flex-direction: column; font-size: 8px; }.library-footer nav { flex-wrap: wrap; gap: 14px; }.modal { padding: 20px 16px; }.modal h2 { font-size: 26px; }.level-card { grid-template-columns: 34px 1fr auto; gap: 7px; padding: 9px 7px; }.level-info strong { font-size: 13px; }.level-info small { font-size: 8px; }.level-play { min-width: 54px; padding: 0 6px; }.game-screen { padding-left: 11px; padding-right: 11px; }.game-topbar { grid-template-columns: 1fr 1.7fr 1fr; }.game-controls { min-height: 64px; flex-basis: 64px; }.control-hint { min-width: 103px; gap: 6px; }.control-hint strong { font-size: 8px; }.control-hint small { font-size: 7px; }.tap-icon { width: 28px; height: 28px; }.ability-button { min-width: 134px; gap: 6px; padding: 4px 8px; }.ability-orbit { width: 27px; height: 27px; flex: 0 0 27px; }.ability-button-copy strong { font-size: 8px; }.sound-mini { width: 32px; height: 32px; }.end-card { padding: 23px 16px 18px; }.end-card h2 { font-size: 25px; }.end-actions { gap: 6px; }.end-actions .button { padding: 0 7px; }
}
@media (max-width: 360px) {
  .library-screen { padding: 0 12px; }.hero h1 { font-size: 43px; }.hero-art { right: -127px; }.section-note { display: none; }.world-card { min-height: 135px; }.world-card h3 { font-size: 12px; }.ability-button { min-width: 122px; }.control-hint { min-width: 89px; }.control-hint small { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
