/* Wildkin's illustrated account adventure. All fonts and artwork are bundled. */
:root {
  font-family: 'DM Sans', Inter, system-ui, sans-serif;
  color: #f5fbff;
  color-scheme: dark;
  background: #147bd0;
  --gold: #ffd461;
  --green: #d7f3ff;
  --muted: #d5eaff;
  --line: #7ecaff66;
  --ink: #082a60;
  --frame: #77501a;
  --panel: #156bc1;
}
* { box-sizing: border-box; }
body {
  min-height: 100dvh;
  margin: 0;
  background-color: #147bd0;
  background-image: radial-gradient(ellipse at 50% 0, #5dc4ff44, transparent 65%), url("assets/ui/diamond-wall.svg");
  background-size: auto, 128px 128px;
  background-attachment: fixed;
  line-height: 1.5;
}
h1, h2, h3, .wordmark {
  font-family: 'Wildkin Display', Outfit, sans-serif;
  font-weight: 400;
  letter-spacing: .2px;
  color: #fffbed;
  -webkit-text-stroke: 2px #0b346a;
  paint-order: stroke fill;
  text-shadow: 0 3px #082b62;
}
h1 { font-size: 38px; line-height: 1.1; }
h2 { font-size: 29px; line-height: 1.15; }
h3 { font-size: 25px; line-height: 1.15; }
p { color: var(--muted); font-size: 14px; line-height: 1.6; }
a { color: #fff0ab; }
button, input, select { font-family: 'DM Sans', Inter, system-ui, sans-serif; }
button, .button-link {
  position: relative;
  min-width: 0;
  min-height: 48px;
  padding: 11px 16px;
  border: 2px solid #072e69;
  border-radius: 10px;
  background: linear-gradient(#206b9f, #185e95 52%, #124c83);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  box-shadow: inset 0 2px #b3edff9e, inset 0 -2px #0d59b1, 0 4px #06336e, 0 5px #acdfff6b;
  text-shadow: 0 1px 1px #084780;
  cursor: pointer;
}
button:hover, .button-link:hover { background: linear-gradient(#246f9f, #1b6396 60%, #155486); border-color: #06245a; }
button:active, .button-link:active { transform: translateY(2px); box-shadow: inset 0 2px #b3edff75, 0 2px #06336e; }
button:disabled { opacity: .5; cursor: default; transform: none; }
button.primary {
  border-color: #87511a;
  background: linear-gradient(#fff2a2, #ffd654 40%, #ecae29);
  color: #fff9d9;
  font-family: 'Wildkin Display', Outfit, sans-serif;
  font-size: 21px;
  font-weight: 400;
  -webkit-text-stroke: 1.5px #6a3b0f;
  paint-order: stroke fill;
  text-shadow: 0 2px #8f5918;
  box-shadow: inset 0 2px #fff8ce, inset 0 -3px #d79016, 0 4px #81501a, 0 5px #092f65;
}
button.primary:hover { background: linear-gradient(#fff8c5, #ffe17b 50%, #f4ba3c); }
button.danger { background: linear-gradient(#9b493f, #77313b); border-color: #6d2937; box-shadow: inset 0 2px #ffd1ae77, 0 4px #662d3a; color: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #ffef96; outline-offset: 4px; }
.text-btn, .back-link { background: transparent; border-color: transparent; box-shadow: none; color: #fff0a7; font-size: 13px; }
.text-btn:hover, .back-link:hover { background: #074d9855; border-color: transparent; }
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: calc(11px + env(safe-area-inset-top)) max(24px, calc((100vw - 1080px)/2)) 11px;
  background: linear-gradient(#1e85dc, #1159a8);
  border-bottom: 3px solid #0b3776;
  box-shadow: inset 0 -2px #73c9ff88, 0 3px #093b7d55;
}
.wordmark { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 37px; letter-spacing: .5px; text-decoration: none; }
.brand-emblem { color: #ffe07b; font-family: serif; font-size: 35px; -webkit-text-stroke: 1px #825014; text-shadow: 0 2px #073568; }
.adventure-mode { display: flex; align-items: center; gap: 7px; margin-right: auto; font-size: 12px; font-weight: 750; color: #e2f2ff; white-space: nowrap; }
.adventure-mode>span { width: 7px; height: 7px; border-radius: 50%; background: #b1f2b3; border: 1px solid #27744f; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-actions a { display: flex; align-items: center; min-height: 48px; color: #fff0ac; font-size: 12px; font-weight: 650; }
.top-actions #account-toggle { display: none; }
.skip-link { position: absolute; z-index: 100; top: 10px; left: 16px; padding: 12px; background: #ffe18a; color: #102e5e; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
main { max-width: 1080px; min-height: calc(100dvh - 135px); margin: auto; padding: 23px 24px 42px; }
.is-online-signed-in main { padding-bottom: calc(136px + env(safe-area-inset-bottom)); }
.resource-bar { display: flex; justify-content: center; gap: 13px; max-width: 700px; margin: 0 auto 23px; }
.resource {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  padding: 5px 11px 5px 5px;
  border: 2px solid #8ad4ff;
  border-radius: 12px;
  background: linear-gradient(#0b58ad, #073b86);
  box-shadow: inset 0 2px #041c5f55, 0 3px #08316b;
  font-variant-numeric: tabular-nums;
}
.resource-art { flex: none; width: 43px; height: 43px; filter: drop-shadow(0 2px 1px #032a5d); }
.resource-art svg { display: block; width: 100%; height: 100%; }
.resource-amount { min-width: 0; }
.resource-label { display: block; color: #d9eeff; font-size: 12px; line-height: 1.1; }
.resource strong { display: block; color: #fff5c6; font-family: 'Wildkin Display', sans-serif; font-size: 25px; line-height: 1.15; font-weight: 400; -webkit-text-stroke: 1px #032354; paint-order: stroke fill; text-shadow: 0 2px #062d67; }
.destination-nav {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  width: min(650px, calc(100% - 32px));
  padding: 7px;
  border: 3px solid #efbd51;
  border-radius: 16px;
  background: linear-gradient(#156ac0, #073b82);
  box-shadow: inset 0 2px #83cbff77, 0 5px #08285b, 0 8px 20px #04255c55;
}
.destination-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 81px; padding: 6px 3px; border: 1px solid #317ec1; border-radius: 10px; background: linear-gradient(#2278cb, #1353a4); box-shadow: inset 0 1px #9cdbff55, 0 2px #062e66; color: #f5f8ff; font-family: 'Wildkin Display', sans-serif; font-size: 16px; font-weight: 400; -webkit-text-stroke: 1px #09244d; paint-order: stroke fill; text-shadow: 0 2px #082a61; }
.destination-nav svg { display: block; width: 48px; height: 48px; flex: none; filter: drop-shadow(0 2px 1px #05285a); }
.destination-nav [aria-current=page] { z-index: 1; transform: translateY(-8px); border: 2px solid #fff1aa; background: linear-gradient(#fff1a1, #ffd04e 50%, #e6a120); box-shadow: inset 0 2px #fff8d2, inset 0 -3px #cd8218, 0 4px #85500d, 0 5px #073267; color: #fff6ce; -webkit-text-stroke: 1px #69420e; text-shadow: 0 2px #936019; }
.destination-nav [aria-current=page] svg { transform: scale(1.12); }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 65px; margin-bottom: 16px; padding: 11px 15px; border: 3px solid #825016; border-radius: 12px; background: linear-gradient(#ffe99a, #f6ca58 55%, #e5a735); box-shadow: inset 0 2px #fff9ca, inset 0 -2px #cd8a22, 0 4px #0c3d7f; }
.heading-row h1 { max-width: calc(100% - 82px); margin: 0; font-size: 36px; -webkit-text-stroke-color: #794b1c; text-shadow: 0 2px #9e6827; }
h1[tabindex]:focus { outline: 0; }
.heading-row .refresh-button { flex: none; padding: 8px 12px; min-height: 48px; font-size: 12px; }
.section-note { max-width: 690px; margin: 0 0 23px; color: #e2f0ff; font-size: 14px; text-shadow: 0 1px #104985; }
.eyebrow { font: 750 12px/1.5 'DM Sans', sans-serif; letter-spacing: 1.1px; color: #fff1ac; text-shadow: 0 1px #14437c; }
.pill { display: inline-block; padding: 5px 8px; margin-bottom: 12px; border: 1px solid #88cfff8c; border-radius: 6px; background: #0c4c9d; color: #e5f6ff; font-size: 12px; font-weight: 650; letter-spacing: .4px; }
.panel { position: relative; min-width: 0; padding: 24px; border: 3px solid #173969; border-radius: 15px; background: linear-gradient(135deg, #174f85, #103b6b 70%); box-shadow: inset 0 2px #b3edff77, inset 0 -3px #0b58ab, 0 4px #073b7b; }
.panel h2 { font-size: 29px; }
.panel h3 { font-size: 25px; }
.panel p { color: #e0f0ff; }
.back-link { display: inline-flex; align-items: center; margin: -4px 0 10px -7px; padding: 8px 10px; }
.context-links { display: flex; gap: 10px; margin: 0 0 23px; padding: 0 0 4px; }
.context-links button { flex: 1; min-height: 47px; font-size: 14px; }
.context-links [aria-current=page] { border-color: #865216; background: linear-gradient(#ffec9c, #efb32e); color: #4e3410; box-shadow: inset 0 2px #fff7c9, 0 4px #82511c; text-shadow: none; }
.section-title { margin: 30px 0 19px; font-size: 30px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; }
.section-heading button { flex: none; font-size: 12px; }
.next-adventure { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 24px; padding: 29px; margin-bottom: 22px; border-color: #a67121; background: radial-gradient(ellipse at 90% 45%, #a0ecff4d, transparent 60%), linear-gradient(#2999e5, #0f68bb); box-shadow: inset 0 2px #ffed9a, inset 0 0 0 2px #d1a24a, 0 5px #083c80; overflow: hidden; }
.next-adventure h2 { margin: 12px 0; font-size: 38px; }
.next-adventure p { max-width: 420px; margin-bottom: 21px; }
.next-adventure .primary { min-width: 190px; }
.next-adventure-art { display: grid; place-items: center; min-height: 205px; background: radial-gradient(ellipse, #d2fbff44, transparent 67%); }
.next-adventure-art img, .next-adventure-art svg { max-width: 230px; max-height: 240px; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 8px 4px #073d7c66); }
.home-shortcuts, .daily-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.home-shortcuts h2 { margin: 12px 0; font-size: 29px; }
.home-shortcuts p { margin-bottom: 18px; font-size: 14px; }
.home-shortcuts button { width: 100%; }
.daily-actions .panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px; }
.daily-actions h2 { margin: 0 0 6px; font-size: 27px; }
.daily-actions p { margin: 0; font-size: 12px; }
.daily-actions button { flex: none; font-size: 13px; }
.journal { margin-bottom: 10px; }
.journal>p { margin: 13px 0 0; font-size: 13px; }
.journal .journal-entry { padding-top: 14px; border-top: 1px solid #9bd8ff66; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.creature-card { display: flex; flex-direction: column; align-items: stretch; padding: 14px; text-align: center; border: 3px solid #ba892d; background: linear-gradient(#64b9ed, #2582d6 55%, #1154a6); box-shadow: inset 0 0 0 2px #ffe8a6, inset 0 -3px #0a397d, 0 5px #07306d; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 31px; }
.card-topline .pill { margin: 0; padding: 4px 7px; font-size: 12px; }
.level-badge, .energy-badge { min-width: 40px; border: 2px solid #805325; border-radius: 7px; background: linear-gradient(#ffe9a1, #f0bc44); padding: 3px 6px; color: #54370e; font-size: 12px; font-weight: 750; box-shadow: inset 0 1px #fff8ce, 0 2px #163a75; }
.energy-badge { min-width: 30px; border-color: #4f2379; border-radius: 50%; background: linear-gradient(#f2afff, #ad55e9); color: white; font-size: 19px; font-family: 'Wildkin Display', sans-serif; }
.creature-card .portrait { display: flex; align-items: center; justify-content: center; width: 100%; height: 210px; margin: 6px 0 13px; border-radius: 9px; background: radial-gradient(ellipse, color-mix(in srgb, var(--card-glow, #b1efff) 45%, transparent), transparent 72%); }
.creature-card .portrait img, .creature-card .portrait svg { max-width: 100%; max-height: 215px; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 3px #06367b77); }
.creature-card h3 { min-height: 31px; margin: 0 0 8px; font-size: 29px; }
.creature-card .team-marker { margin: 0 0 6px; color: #fff0a3; font-size: 12px; font-weight: 750; }
.creature-card .card-details { min-height: 37px; margin: 0 0 13px; font-size: 12px; }
.creature-card .row { flex-direction: column; align-items: stretch; gap: 10px; margin: 0; }
.creature-card .row>* { flex: none; width: 100%; min-height: 48px; font-size: 12px; }
.card-actions { margin-top: 3px; text-align: left; }
.card-actions summary { min-height: 48px; padding: 11px 8px; border: 2px solid #063368; border-radius: 8px; background: linear-gradient(#4eb6ef, #1678c9); color: white; font-size: 12px; font-weight: 750; text-align: center; box-shadow: inset 0 1px #aeeaff, 0 3px #073570; cursor: pointer; }
.card-actions[open] summary { margin-bottom: 14px; }
.card-actions summary:focus-visible { outline: 3px solid #ffec97; outline-offset: 3px; }
.card-evolution { border-top: 1px solid #aedfff66; margin-top: 18px; padding-top: 13px; }
.card-evolution p { margin: 0 0 10px; font-size: 12px; }
.card-evolution .primary { width: 100%; min-height: 48px; font-size: 17px; }
.creature-card>.primary { width: 100%; margin-top: auto; font-size: 19px; }
.deck-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.deck-slots button { padding: 12px 6px 8px; min-height: 145px; border: 3px solid #3887c9; border-radius: 11px; background: linear-gradient(#77ccf4, #256fbd); box-shadow: inset 0 0 0 1px #c6f2ff, 0 4px #083b7b; }
.deck-slots button.active { border-color: #ffec9d; background: linear-gradient(#fff2ad, #e5b85b); box-shadow: inset 0 0 0 1px #9c681f, 0 4px #85501a; color: #fff7d9; }
.deck-slots img { display: block; max-height: 90px; max-width: 100%; width: 100%; object-fit: contain; margin: 0 auto 7px; }
.deck-slots button>span:last-child { display: block; font-size: 12px; line-height: 1.2; text-shadow: 0 1px 2px #05234f; }
.slot-number { position: absolute; top: 3px; left: 5px; color: #fff4be; font-size: 12px; }
.deck-hint { text-align: center; margin: 0 0 22px; font-size: 13px; }
.progress-list { gap: 14px; }
.progress-row { padding: 19px; border: 2px solid #0b3e7d; border-radius: 12px; background: linear-gradient(#2c91d8, #166ab9); box-shadow: inset 0 2px #96d9ff66, 0 3px #0b3e7d; }
.progress-row h3 { font-size: 25px; }
.progress-row p { margin: 4px 0 0; font-size: 12px; }
.progress-row button { flex: none; }
.pvp-lobby { overflow: hidden; border-color: #af7a23; background: radial-gradient(ellipse at top, #93dbfa66, transparent 70%), linear-gradient(#329be3, #115eb2); box-shadow: inset 0 0 0 2px #ffdf8a, 0 5px #083b7c; }
.battle-banner-art { display: flex; align-items: flex-end; justify-content: center; height: 180px; margin: -6px 0 13px; background: radial-gradient(ellipse, #d9ffff44, transparent 68%); }
.battle-banner-art img { max-width: 48%; max-height: 195px; width: auto; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 3px #073d7c66); }
.battle-banner-art img+img { margin-left: -20px; }
.pvp-lobby .live-pill { color: #fff0ad!important; border-color: #ffe4a3!important; background: #1555a2; }
.pvp-lobby .row { gap: 12px; }
.battle-cta { min-height: 58px; font-size: 25px!important; }
.pvp-lobby .row:has(.battle-cta) { flex-direction: column; align-items: stretch; }
.pvp-lobby .row:has(.battle-cta)>button { flex: none; width: 100%; }
.pvp-lobby .friend-join { max-width: 520px; margin-top: 25px; }
.friend-join label { display: block; color: #e2f4ff; font-size: 13px; margin-bottom: 9px; }
.friend-join .row { flex-wrap: nowrap; gap: 9px; }
.friend-join input { width: 180px; min-width: 0; letter-spacing: .1em; }
.friend-join button { flex: none; }
.invite-code { color: #fff3b1; -webkit-text-stroke: 1px #7b4813; paint-order: stroke fill; font-family: 'Wildkin Display', sans-serif; }
.notice { margin: 0 0 22px; border: 2px solid #8e5b1a; border-radius: 11px; background: #ffdf8e; color: #45321b; font-size: 14px; box-shadow: inset 0 2px #fff9ca, 0 3px #144b8d; }
.notice button { font-size: 12px; }
.supply-card { display: flex; flex-direction: column; align-items: center; padding: 23px 19px; text-align: center; border-color: #b88220; box-shadow: inset 0 0 0 2px #ffe9a9, 0 5px #0a397a; }
.supply-card .pill { margin-bottom: 15px; }
.supply-art { width: 140px; height: 140px; margin: 0 auto 18px; filter: drop-shadow(0 6px 2px #07377c66); }
.supply-art svg { width: 100%; height: 100%; }
.supply-card h2 { min-height: 34px; margin: 0 0 12px; font-size: 30px; }
.supply-card p { margin: 0 0 24px; font-size: 15px; }
.supply-card p strong { color: #fff0a4; }
.supply-buy { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: auto; }
.supply-buy svg { flex: none; width: 30px; height: 30px; }
.more-menu { display: grid; gap: 16px; margin-top: 22px; }
.menu-destination { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 100px; padding: 20px 23px; text-align: left; border-width: 3px; border-radius: 13px; }
.menu-destination strong { display: block; font-family: 'Wildkin Display', sans-serif; font-size: 29px; font-weight: 400; -webkit-text-stroke: 1.5px #0a3164; paint-order: stroke fill; text-shadow: 0 2px #07336d; }
.menu-destination small { display: block; max-width: 520px; color: #e4f4ff; font-size: 13px; font-weight: 400; margin-top: 7px; line-height: 1.5; }
.menu-destination>span:last-child { flex: none; color: #fff0a4; font-size: 25px; }
.account-card { margin-top: 22px; }
.account-card h2 { margin: 10px 0; font-size: 32px; min-width: 0; overflow-wrap: anywhere; }
.account-card dl { margin: 22px 0; }
.account-card dl>div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid #97d6ff66; font-size: 13px; }
.account-card dt { flex: none; color: #cdeaff; }
.account-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; text-align: right; }
.mode-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.mode-card h2 { margin: 0 0 10px; }
.mode-card p { max-width: 500px; margin: 0; font-size: 13px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; flex: none; text-decoration: none; font-size: 13px; }
input, select, .auth-panel input { min-height: 48px; border: 2px solid #83ceff; border-radius: 8px; padding: 11px 12px; background: #084d99; color: #fff; font-size: 16px; box-shadow: inset 0 2px 3px #042b6b88; }
input::placeholder { color: #badfff; opacity: 1; }
.auth-layout { display: grid; grid-template-columns: minmax(320px, 450px) minmax(0, 1fr); gap: 65px; min-height: calc(100dvh - 200px); align-items: center; padding: 16px 0; }
.auth-panel { width: 100%; max-width: 450px; margin: auto; padding: 29px; border: 3px solid #92621e; border-radius: 16px; background: linear-gradient(#1763a3, #0d4c83); box-shadow: inset 0 0 0 2px #ffe6a2, 0 6px #0a3979, 0 12px 25px #06438766; }
.auth-panel h1 { margin: 0 0 10px; font-size: 36px; line-height: 1.08; }
.auth-panel>p { color: #e6f5ff; font-size: 14px; margin-bottom: 15px; }
.auth-panel .google-sign-in { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: 8px; padding: 11px 16px; min-height: 48px; border: 1px solid #747775; border-radius: 8px; background: white; color: #1f1f1f; font-family: Arial, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .25px; -webkit-text-stroke: 0; text-shadow: none; box-shadow: 0 2px 3px #003a7344; }
.auth-panel .google-sign-in:hover { background: #f7faff; border-color: #747775; }
.google-sign-in img { flex: none; object-fit: contain; }
.google-status { margin: 10px 0 0; }
.google-status:empty { display: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: #dcf0ff; font-size: 12px; }
.auth-divider:before, .auth-divider:after { content: ''; flex: 1; height: 1px; background: #a6e0ff77; }
.auth-panel label { display: block; color: #e1f2ff; font-size: 13px; font-weight: 650; margin-top: 15px; }
.auth-panel input { display: block; width: 100%; margin-top: 7px; }
.auth-panel .row { gap: 10px; }
.auth-panel .row button { margin-top: 17px; padding: 11px 10px; font-size: 14px; }
.auth-panel .row button.primary { font-size: 22px; }
.auth-panel .forgot-password { display: block; min-height: 48px; margin: 9px 0 0 -10px; padding: 8px 10px; font-size: 13px; }
.auth-panel .auth-note { margin: 13px 0 0; color: #d6ecff; font-size: 12px; line-height: 1.55; }
.auth-panel .error { color: #ffe3ac; font-size: 13px; margin: 13px 0 0; }
.auth-panel .error:empty { display: none; }
.welcome { max-width: 440px; padding: 12px 0; text-align: center; }
.welcome h2 { font-size: 35px; margin: 22px 0 15px; }
.welcome p { max-width: 360px; margin-left: auto; margin-right: auto; font-size: 14px; }
.auth-art { display: flex; align-items: center; justify-content: center; min-height: 220px; margin: 0; gap: 0; background: radial-gradient(ellipse, #c5f6ff44, transparent 65%); }
.auth-art img, .auth-art svg { max-width: 170px; max-height: 200px; width: 47%; height: auto; object-fit: contain; filter: drop-shadow(0 8px 3px #0b438666); }
.auth-art>*:last-child { margin-left: -10px; transform: translateY(10px); }
.auth-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 23px; font-size: 12px; color: #d6eeff; }
.auth-features span { padding: 8px 10px; border: 1px solid #b2ddff55; border-radius: 18px; background: #0d5aae66; }
footer { padding: 16px 24px; border-top: 1px solid #7ccaff66; color: #d0eaff; font-size: 12px; text-align: center; }
.is-online-signed-in footer { display: none; }
#online-status { position: fixed; z-index: 60; left: 50%; bottom: calc(123px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(600px, calc(100vw - 30px)); padding: 13px 19px; border: 2px solid #ad7b24; border-radius: 11px; background: #ffe5a0; color: #3d2c17; box-shadow: 0 4px #0b3e80; font-size: 14px; }
.is-online-battle #online-status { bottom: calc(14px + env(safe-area-inset-bottom)); }
.is-online-battle .topbar, .is-online-battle footer { display: none; }
.is-online-battle main { max-width: 1200px; min-height: 100dvh; padding: calc(13px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom)); }
.is-online-battle .battle-score { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; padding: 10px 13px; border: 2px solid #86551a; border-radius: 10px; background: linear-gradient(#ffdf83, #ebb13e); color: #173b70; font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; box-shadow: inset 0 1px #fff4bd, 0 3px #0a3b7b; }
.battle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; }
.canvas-wrap { min-width: 0; border: 3px solid #bc8a30; border-radius: 14px; background: #155baa; box-shadow: 0 4px #08336c; overflow: hidden; }
.canvas-wrap canvas { display: block; width: 100%; height: min(75dvh, 760px); touch-action: none; }
.battle-side { padding: 18px; }
.battle-side h2 { margin-top: 0; font-size: 28px; }
.battle-side>p { font-size: 13px; line-height: 1.5; }
.battle-side .hand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.battle-side .hand button { padding: 9px 6px; min-height: 78px; font-size: 13px; }
.hand button.selected { border: 2px solid #ffec9b; background: linear-gradient(#b4d8e2, #4d8fcc); box-shadow: inset 0 1px #fff6ca, 0 4px #80561b; }
.hand button small { display: block; margin-top: 6px; color: #fff0ad; font-size: 12px; }
.battle-side .row { margin-top: 13px; }
.battle-side .row button { font-size: 13px; }
.battle-side #connection-status { margin: 15px 0 0; font-size: 12px; }
.visually-hidden { position: absolute!important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
/* Keep the next goal prominent; routine tasks and advanced modes stay secondary. */
.next-adventure-action { grid-column: 1 / -1; }
.next-adventure-action .primary { width: 100%; min-height: 56px; }
.keeper-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 22px; }
.keeper-shortcuts button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 76px; padding: 10px; text-align: left; }
.keeper-shortcuts svg { flex: none; width: 39px; height: 43px; }
.keeper-shortcuts strong { display: block; font-size: 14px; }
.keeper-shortcuts small { display: block; margin-top: 4px; font-size: 12px; color: #d9efff; font-weight: 400; }
.lodge-today { padding: 22px; margin-bottom: 20px; }
.lodge-today .section-heading h2 { font-size: 28px; }
.lodge-service { display: flex; align-items: center; gap: 15px; padding: 20px 0; border-top: 1px solid #a0daff55; }
.lodge-service:first-of-type { margin-top: 18px; }
.lodge-service:last-child { padding-bottom: 0; }
.service-art { flex: none; width: 52px; height: 57px; }
.service-art svg { width: 100%; height: 100%; }
.service-copy { min-width: 0; flex: 1; }
.service-copy h3 { margin: 0 0 6px; font-size: 25px; }
.service-copy p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; }
.service-copy [data-daily-status],.service-copy [data-harvest-status] { color: #fff0b3; font-size: 12px; }
.lodge-service>button { flex: none; width: 128px; font-size: 13px; }
.home-journey { margin-bottom: 20px; }
.home-journey button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; }
.home-journey span { font-size: 12px; font-weight: 400; }
.battle-guide { display: grid; grid-template-columns: minmax(0,1fr) 185px; align-items: center; gap: 14px 22px; margin-bottom: 22px; }
.battle-guide-copy { display: contents; }
.battle-guide-copy>.eyebrow { grid-column: 1; grid-row: 1; }
.battle-guide-copy>h2 { grid-column: 1; grid-row: 2; margin: 0; font-size: 33px; }
.battle-guide-copy>.battle-intro { grid-column: 1; grid-row: 3; margin: 0; font-size: 14px; }
.battle-guide-copy>.battle-cta { grid-column: 1 / -1; grid-row: 4; width: 100%; margin-top: 3px; }
.battle-guide-copy>.battle-mode-note { grid-column: 1 / -1; grid-row: 5; text-align: center; }
.battle-guide-copy>.battle-basics { grid-column: 1 / -1; grid-row: 6; }
.battle-guide-art { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 100%; }
.battle-guide-art img { display: block; width: 100%; height: 195px; object-fit: contain; filter: drop-shadow(0 6px 3px #08427788); }
.battle-mode-note { margin: 4px 0 0; color: #d9eeff; font-size: 13px; line-height: 1.5; }
.practice-option { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; padding: 20px; }
.practice-option h2 { margin: 0 0 6px; font-size: 27px; }
.practice-option p { max-width: 510px; margin: 0; font-size: 14px; }
.practice-option>button { flex: none; min-width: 145px; }
.battle-disclosure { margin: 0 0 20px; border: 2px solid #0b3a74; border-radius: 12px; background: #115ba6; box-shadow: inset 0 1px #95d7ff55, 0 3px #083871; }
.battle-disclosure>summary,.friend-options>summary,.battle-basics>summary { min-height: 52px; padding: 15px 17px; cursor: pointer; font-size: 15px; font-weight: 750; color: #fff0b5; }
.battle-disclosure>summary strong { font-size: 15px; }
.battle-disclosure>summary span { display: inline-block; margin-left: 15px; color: #d0eaff; font-size: 12px; font-weight: 400; }
.battle-disclosure>summary:focus-visible,.friend-options>summary:focus-visible,.battle-basics>summary:focus-visible { outline: 3px solid #ffe99b; outline-offset: 4px; }
.battle-disclosure>.progress-list,.journal-disclosure>div { padding: 0 16px 18px; }
.battle-disclosure .progress-row { box-shadow: none; }
.battle-disclosure .pvp-lobby { margin: 0 12px 14px; padding: 20px; border: 1px solid #5ea9de; box-shadow: none; }
.pvp-lobby .battle-mode-note { margin-bottom: 18px; text-align: left; }
.pvp-lobby h2 { font-size: 28px; }
.pvp-lobby .row>button { min-height: 48px; }
.pvp-waiting { margin-bottom: 22px; }
.friend-options { margin-top: 24px; padding: 0 0 3px; border-top: 1px solid #94d3ff66; }
.friend-options>summary { padding-left: 0; }
.friend-options>p { margin: 0 0 15px; font-size: 14px; }
.friend-options>button { width: 100%; }
.friend-options .friend-join { margin-top: 25px; }
.battle-basics { border-top: 1px solid #96d9ff66; }
.battle-basics>summary { padding: 13px 0; font-size: 14px; }
.battle-quick-guide { margin: 0 0 14px; padding-left: 22px; color: #e3f2ff; font-size: 14px; line-height: 1.7; }
.battle-tip { margin: 0 0 6px; font-size: 14px; }
.control-hint,.purchase-hint { margin: 17px 0 12px; font-size: 13px; line-height: 1.6; color: #e1f1ff; }
.supply-card .purchase-hint { min-height: 21px; margin: 17px 0 0; font-size: 12px; }
.nursery-activity .control-hint { margin-bottom: 0; }
.nursery-activity .row { margin-top: 20px; }
@media (max-width: 850px) {
  .topbar { padding-left: 24px; padding-right: 24px; }
  .auth-layout { gap: 30px; }
  .next-adventure { grid-template-columns: minmax(0, 1fr) 180px; }
  .next-adventure h2 { font-size: 34px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-actions .panel { display: block; }
  .daily-actions button { width: 100%; margin-top: 16px; }
  .battle-layout { grid-template-columns: 1fr; }
  .canvas-wrap canvas { height: 54dvh; }
  .battle-side { padding: 13px; }
  .battle-side h2, .battle-side>p:not(#connection-status), .battle-side>.pill { display: none; }
  .battle-side .hand { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .battle-side .row { display: inline-flex; width: calc(50% - 7px); margin-top: 13px; }
  .battle-side .row+.row { margin-left: 10px; }
  .battle-side #connection-status { text-align: center; }
}
@media (max-width: 620px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; min-height: 77px; padding: calc(7px + env(safe-area-inset-top)) 15px 10px; }
  .wordmark { grid-column: 1; grid-row: 1; gap: 7px; font-size: 32px; line-height: 1.1; }
  .brand-emblem { font-size: 29px; }
  .adventure-mode { grid-column: 1; grid-row: 2; margin: 4px 0 0 30px; gap: 6px; font-size: 12px; }
  .adventure-mode>span { width: 6px; height: 6px; }
  .top-actions { grid-column: 2; grid-row: 1 / span 2; }
  .top-actions a { min-height: 48px; font-size: 12px; }
  .is-online-signed-in .top-actions { display: none; }
  main { min-height: calc(100dvh - 125px); padding: 17px 14px 30px; }
  .is-online-signed-in main { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .resource-bar { gap: 7px; margin-bottom: 19px; }
  .resource { gap: 2px; min-height: 48px; padding: 5px 5px 5px 1px; border-radius: 9px; }
  .resource-art { width: 32px; height: 34px; }
  .resource-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .resource strong { font-size: 21px; }
  .destination-nav { bottom: 0; left: 0; transform: none; width: 100%; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); gap: 4px; border-width: 3px 0 0; border-radius: 14px 14px 0 0; }
  .destination-nav button { min-height: 77px; padding: 5px 2px; font-size: 15px; border-radius: 8px; }
  .destination-nav svg { width: 43px; height: 45px; }
  .destination-nav [aria-current=page] { transform: translateY(-7px); }
  .heading-row { min-height: 60px; gap: 9px; padding: 10px 11px; margin-bottom: 14px; border-width: 2px; border-radius: 11px; }
  .heading-row h1 { max-width: calc(100% - 73px); font-size: 31px; line-height: 1.1; }
  .heading-row .refresh-button { padding: 8px 10px; font-size: 12px; }
  .section-note { margin-bottom: 20px; font-size: 13px; line-height: 1.55; }
  .panel { padding: 19px; border-radius: 13px; }
  .eyebrow { font-size: 12px; letter-spacing: .8px; }
  .next-adventure { grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; padding: 22px 17px; margin-bottom: 19px; min-height: 240px; }
  .next-adventure h2 { font-size: 30px; margin: 10px 0; }
  .next-adventure p { font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
  .next-adventure-art { min-height: 170px; margin-right: -12px; }
  .next-adventure-art img, .next-adventure-art svg { max-width: 145px; max-height: 190px; width: 145px; }
  .next-adventure .primary { min-width: 164px; padding: 12px 10px; font-size: 21px; }
  .home-shortcuts, .daily-actions { gap: 13px; margin-bottom: 17px; }
  .home-shortcuts .panel, .daily-actions .panel { padding: 16px 13px; }
  .home-shortcuts h2 { min-height: 55px; margin: 11px 0; font-size: 25px; }
  .home-shortcuts p { min-height: 58px; margin-bottom: 14px; font-size: 12px; }
  .home-shortcuts button { padding: 11px 7px; font-size: 12px; }
  .daily-actions h2 { font-size: 25px; }
  .daily-actions p { font-size: 12px; }
  .daily-actions button { padding: 11px 8px; font-size: 13px; }
  .journal { padding: 18px 15px; }
  .section-heading { gap: 6px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading button { padding: 9px 7px; font-size: 12px; }
  .section-title { margin: 28px 0 18px; font-size: 29px; }
  .context-links { gap: 9px; margin-bottom: 22px; }
  .context-links button { font-size: 13px; }
  .grid, .grid.collection { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .creature-card, .collection .creature-card { padding: 11px; border-radius: 12px; }
  .card-topline { gap: 4px; }
  .card-topline .pill { padding: 4px 5px; font-size: 12px; }
  .level-badge { min-width: 37px; padding: 4px; font-size: 12px; }
  .creature-card .portrait, .collection .creature-card .portrait { height: 157px; margin: 7px 0 10px; }
  .creature-card .portrait img, .creature-card .portrait svg { max-height: 165px; }
  .creature-card h3 { min-height: 54px; margin-bottom: 6px; font-size: 25px; }
  .creature-card .team-marker, .creature-card .card-details { font-size: 12px; }
  .creature-card .row>* { font-size: 12px; padding: 10px 6px; }
  .card-evolution { margin-top: 16px; padding-top: 12px; }
  .card-evolution p { font-size: 12px; }
  .card-evolution .primary, .creature-card>.primary { font-size: 18px; padding: 11px 6px; }
  .deck-slots { gap: 8px; margin-bottom: 19px; }
  .deck-slots button { min-height: 124px; padding: 15px 4px 7px; border-width: 2px; }
  .deck-slots img { height: 68px; max-height: 68px; margin-bottom: 7px; }
  .deck-slots button>span:last-child { font-size: 12px; overflow-wrap: anywhere; }
  .deck-hint { font-size: 12px; }
  .progress-row { gap: 12px; padding: 16px; }
  .progress-row h3 { font-size: 23px; }
  .progress-row p, .progress-row button { font-size: 12px; }
  .progress-row button { padding: 11px 10px; }
  .pvp-lobby h2 { font-size: 30px; }
  .pvp-lobby p { font-size: 13px; }
  .pvp-lobby .row { gap: 11px; }
  .battle-banner-art { height: 165px; margin-bottom: 17px; }
  .battle-banner-art img { max-height: 180px; }
  .battle-cta { min-height: 58px; font-size: 25px!important; }
  .friend-join .row { gap: 8px; }
  .friend-join input { width: 100%; font-size: 16px; letter-spacing: .05em; }
  .friend-join button { min-width: 91px; padding: 12px 8px; font-size: 12px; }
  .invite-code { font-size: 35px; }
  .supply-card { padding: 18px 12px; }
  .supply-card .pill { font-size: 12px; padding: 5px 6px; margin-bottom: 10px; }
  .supply-art { width: 110px; height: 110px; margin-bottom: 17px; }
  .supply-card h2 { min-height: 58px; font-size: 26px; }
  .supply-card p { font-size: 13px; margin-bottom: 20px; }
  .supply-buy { gap: 4px; padding: 11px 5px!important; font-size: 21px!important; }
  .supply-buy svg { width: 24px; height: 24px; }
  .more-menu { gap: 17px; margin-top: 20px; }
  .menu-destination { min-height: 108px; padding: 18px; }
  .menu-destination strong { font-size: 28px; }
  .menu-destination small { font-size: 13px; line-height: 1.5; }
  .account-card dl>div { display: block; font-size: 13px; }
  .account-card dd { margin-top: 6px; text-align: left; }
  .mode-card { display: block; }
  .mode-card .button-link { width: 100%; margin-top: 20px; }
  .auth-layout { display: flex; flex-direction: column; align-items: stretch; gap: 22px; min-height: auto; padding: 0; }
  .auth-panel { order: 0; max-width: 440px; padding: 24px 21px; }
  .auth-panel h1 { font-size: 33px; }
  .auth-panel>p { font-size: 14px; margin-bottom: 13px; }
  .auth-panel label { margin-top: 14px; }
  .auth-panel .row button { font-size: 14px; }
  .auth-panel .row button.primary { font-size: 22px; }
  .auth-panel .auth-note { font-size: 12px; }
  .auth-layout .welcome { order: 1; max-width: 430px; margin: auto; padding: 0 10px 15px; }
  .auth-art { min-height: 160px; }
  .auth-art img, .auth-art svg { max-width: 135px; max-height: 160px; }
  .welcome h2 { font-size: 29px; margin: 14px 0; }
  .welcome p { font-size: 13px; }
  .auth-features { gap: 8px; font-size: 12px; margin-top: 18px; }
  .auth-features span { padding: 7px 9px; }
  .is-online-battle main { padding: calc(9px + env(safe-area-inset-top)) 9px calc(13px + env(safe-area-inset-bottom)); }
  .is-online-battle .battle-score { gap: 6px; margin-bottom: 10px; padding: 10px 8px; font-size: 12px; }
  .battle-layout { gap: 11px; }
  .canvas-wrap canvas { height: 46dvh; }
  .battle-side { padding: 11px; }
  .battle-side .hand { gap: 5px; }
  .battle-side .hand button { min-height: 75px; padding: 8px 3px; font-size: 12px; overflow-wrap: anywhere; }
  .battle-side .hand small { margin-top: 5px; font-size: 12px; }
  .battle-side .row { width: calc(54% - 6px); margin-top: 12px; gap: 6px; }
  .battle-side .row+.row { width: calc(46% - 6px); margin-left: 8px; }
  .battle-side .row button { font-size: 12px; padding: 10px 7px; }
  .battle-side #connection-status { margin-top: 14px; font-size: 12px; line-height: 1.5; }
}
@media (max-width: 620px) {
  .next-adventure { gap: 14px 10px; }
  .next-adventure-action .primary { min-width: 0; min-height: 56px; font-size: 23px; }
  .keeper-shortcuts { gap: 8px; margin-bottom: 20px; }
  .keeper-shortcuts button { flex-direction: column; gap: 4px; min-height: 96px; padding: 9px 5px; text-align: center; }
  .keeper-shortcuts svg { width: 37px; height: 39px; }
  .keeper-shortcuts strong { font-size: 13px; }
  .keeper-shortcuts small { margin-top: 3px; font-size: 12px; line-height: 1.3; }
  .lodge-today { padding: 19px 15px; }
  .lodge-today .section-heading h2 { font-size: 27px; }
  .lodge-service { flex-wrap: wrap; gap: 10px; padding: 17px 0; }
  .service-art { width: 43px; height: 47px; }
  .service-copy { flex: 1; }
  .service-copy h3 { font-size: 24px; }
  .service-copy p { font-size: 13px; }
  .lodge-service>button { width: calc(100% - 53px); min-height: 48px; margin-left: 53px; font-size: 13px; }
  .home-journey button { align-items: flex-start; flex-direction: column; gap: 6px; }
  .battle-guide { grid-template-columns: minmax(0,1fr) 108px; gap: 12px 10px; padding: 20px 16px; }
  .battle-guide-copy>h2 { font-size: 29px; }
  .battle-guide-copy>.eyebrow { font-size: 12px; letter-spacing: .5px; }
  .battle-guide-copy>.battle-intro { font-size: 14px; line-height: 1.55; }
  .battle-guide-art img { height: 160px; }
  .battle-guide-copy>.battle-mode-note { font-size: 12px; }
  .practice-option { align-items: stretch; flex-direction: column; gap: 17px; padding: 19px; }
  .practice-option h2 { font-size: 27px; }
  .practice-option p { font-size: 14px; }
  .practice-option>button { min-width: 0; }
  .battle-disclosure>summary { padding: 15px; font-size: 14px; }
  .battle-disclosure>summary strong { font-size: 14px; }
  .battle-disclosure>summary span { display: block; margin: 5px 0 0 17px; font-size: 12px; }
  .battle-disclosure>.progress-list,.journal-disclosure>div { padding: 0 11px 14px; }
  .battle-disclosure .pvp-lobby { margin: 0 10px 12px; padding: 17px; }
  .pvp-lobby h2 { font-size: 28px; }
  .pvp-lobby p { font-size: 14px; }
  .battle-mode-note { font-size: 13px; }
  .control-hint { font-size: 13px; }
}
@media (max-width: 360px) {
  .resource-bar { gap: 5px; }
  .resource-art { width: 29px; }
  .resource strong { font-size: 19px; }
  .next-adventure { grid-template-columns: minmax(0, 1fr) 100px; padding: 20px 15px; }
  .next-adventure h2 { font-size: 28px; }
  .next-adventure-art img, .next-adventure-art svg { max-width: 130px; }
  .next-adventure .primary { min-width: 150px; font-size: 19px; }
  .home-shortcuts .panel, .daily-actions .panel { padding: 15px 11px; }
  .creature-card, .collection .creature-card { padding: 9px; }
  .card-topline .pill { padding: 4px; }
  .supply-buy { font-size: 19px!important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto!important; }
  .queue-pulse { animation: none; }
}
