﻿/* Game art provenance and conversion: ../../UI_ASSET_SOURCES.json. */
/* Local owner-kit font; license in fonts/Baloo2-OFL.txt. */
@font-face {
  font-family: 'Baloo 2';
  src: url('fonts/baloo-2-vietnamese-800.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --sky: #48c6e5;
  --ocean: #075b65;
  --cream: #fff5d9;
  --ink: #243b48;
  --muted: #344c58;
  --gold: #ffcf59;
  --red: #bf4033;
  --heading: 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.7 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.3; }
h2 { font-size: clamp(2.1rem, 4.3vw, 3.65rem); letter-spacing: -.015em; }
h3 { font-size: 1.7rem; }
p { overflow-wrap: break-word; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 64px; }
.eyebrow { color: var(--ocean); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.8; margin-bottom: 16px; }
.eyebrow > span { margin-inline: 8px; color: var(--red); }
.section-heading { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.section-heading h2::after { content: ''; display: block; width: 78px; height: 6px; border: 2px solid var(--ink); border-radius: 10px; background: var(--gold); margin-top: 18px; box-shadow: 4px 3px 0 #d9a43b44; }
.section-description { max-width: 410px; color: var(--muted); font-size: 15px; line-height: 1.85; }
/* Nine-slice the actual game button so its scalloped ends never stretch. */
.button, .nav-cta, .motion-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  border: solid transparent; border-width: 12px 24px;
  border-image: url('ui/button-orange.webp') 24 65 fill / 12px 24px stretch;
  background: transparent; color: #3f2b19;
  font-family: var(--heading); font-weight: 800; line-height: 1.25;
  filter: drop-shadow(0 4px 0 #704923);
  transition: transform .18s, filter .18s;
}
.button { min-height: 62px; padding: 4px 10px; font-size: 19px; }
.button > span { font: 800 24px/1 var(--body); }
.button:hover, .nav-cta:hover, .motion-toggle:hover { border-image-source: url('ui/button-orange-hover.webp'); transform: translateY(-2px); filter: drop-shadow(0 6px 0 #704923); }
.button:active, .nav-cta:active, .motion-toggle:active { border-image-source: url('ui/button-orange-pressed.webp'); transform: translateY(3px); filter: drop-shadow(0 1px 0 #704923); }
.skip-link { position: absolute; top: 8px; left: 12px; z-index: 10; background: var(--cream); padding: 10px; border: 3px solid var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: #fffbebf5; border-bottom: 3px solid var(--ink); box-shadow: 0 5px 0 var(--gold), 0 8px 0 #835722; }
.brand { display: block; width: 96px; flex-shrink: 0; color: var(--ink); font: 800 18px/1.15 var(--heading); }
.site-header nav { display: flex; align-items: center; gap: 24px; font-family: var(--heading); font-size: 18px; font-weight: 800; }
.site-header nav > a:not(.nav-cta) { display: none; padding-block: 10px; }
.site-header nav > a:not(.nav-cta):hover { color: var(--red); text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { font-size: 14px; min-height: 48px; padding: 0 1px; gap: 7px; border-width: 10px 18px; border-image-width: 10px 18px; }
.hero { position: relative; isolation: isolate; min-height: max(800px, 100svh); display: grid; place-items: center; overflow: hidden; background: #8ddeee; }
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-video { object-fit: cover; object-position: 50% 50%; background: #8ddeee; }
.hero-shade { z-index: -1; background: linear-gradient(180deg, #c6f3ff20 25%, #f0fcff0a 48%, #b6f0f17a 77%, #d6f7ef 100%); }
.hero-content { width: min(680px, 100%); padding: 135px 20px 175px; text-align: center; }
.hero-content .eyebrow { display: inline-block; padding: 8px 14px; margin-bottom: 12px; border: 2px solid var(--ink); border-radius: 30px; background: #fff8dfed; color: #315260; font-size: 10px; box-shadow: 0 3px 0 #d9a43b; }
.hero-logo { display: block; width: min(420px, 90%); margin: 0 auto 20px; filter: drop-shadow(0 4px 0 #ffffffb0); }
.hero-logo img { width: 100%; }
.hero h1 { font-size: clamp(3.5rem, 7vw, 5.7rem); letter-spacing: -.015em; margin-bottom: 22px; }
.hero-description { width: fit-content; margin: 0 auto 24px; background: #fff9e9f2; border: 2px solid var(--ink); border-radius: 16px; padding: 12px 19px; font-size: 15px; font-weight: 800; line-height: 1.65; box-shadow: 4px 4px 0 #ffc956a6; }
.hero-note { width: fit-content; margin: 20px auto 0; padding: 4px 10px; background: #fff9e9eb; border-radius: 8px; color: #3d5861; font-size: 12px; font-weight: 700; }
.hero-bottom { position: absolute; bottom: 62px; inset-inline: 20px; text-align: center; font-size: 12px; font-weight: 800; color: #294c58; }
.hero-bottom p { margin-bottom: 10px; }
.hero-bottom strong { font-family: var(--heading); font-size: 23px; color: #a6392d; }
.hero-bottom p > span { margin-inline: 5px; color: #58777a; }
.discover { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; }
.discover > span { font-size: 23px; color: #aa352b; }
.motion-toggle { position: absolute; right: 14px; bottom: 12px; padding: 0; gap: 7px; min-height: 36px; font-size: 12px; border-width: 8px 15px; border-image-width: 8px 15px; }
.motion-symbol { font-size: 14px; line-height: 1; }
.motion-label { display: none; }
/* Bright paper, with the game's rope/map ornament joining the ocean. */
.paper { position: relative; background-color: var(--cream); background-image: radial-gradient(#d9b77125 1px, transparent 1px); background-size: 9px 9px; border-top: 3px solid var(--ink); }
.paper::before { content: ''; display: block; position: absolute; top: -33px; left: 50%; width: min(300px, 80%); height: 76px; transform: translateX(-50%); background: url('ui/map-rope.webp') center/contain no-repeat; }
.intro { padding-top: 80px; padding-bottom: 30px; }
.adventure-art { position: relative; padding: 10px; border: 3px solid var(--ink); border-radius: 8px; background: #f8ebc9 url('ui/parchment.webp') center/100% 100%; box-shadow: 5px 6px 0 #e9b643, 8px 9px 0 var(--ink); }
.adventure-art > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 2px solid #875d35; border-radius: 3px; }
.adventure-art figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 12px; padding: 14px 5px 4px; font-size: 11px; font-weight: 800; color: #634528; }
.adventure-art figcaption > span:first-child { color: #98442d; }
.adventure-art figcaption > span:last-child > span { margin-left: 5px; }
.classes { padding-top: 45px; }
.class-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.class-card { --accent: #52b784; --tint: #d8f3d3; border: 3px solid var(--ink); border-radius: 14px; background: #fff4d6; overflow: hidden; box-shadow: 0 5px 0 #d1a552; transition: transform .2s, box-shadow .2s; }
.class-card:hover { transform: translateY(-5px); box-shadow: 0 10px 0 #d1a552; }
.portrait { position: relative; height: 310px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 52%, #fffef0 0 22%, transparent 22.5%), repeating-conic-gradient(from 0deg at 50% 52%, #ffffff40 0deg 15deg, transparent 15deg 30deg), var(--tint); }
.portrait::before { content: ''; position: absolute; width: 205px; height: 205px; top: 60px; left: 50%; transform: translateX(-50%); border: 3px dashed var(--accent); border-radius: 50%; opacity: .65; }
.portrait::after { content: ''; position: absolute; bottom: 12px; width: 65%; height: 18px; background: #4d786d25; border-radius: 50%; }
.portrait > img { position: relative; z-index: 1; width: 100%; height: 83%; padding: 0 10px 12px; object-fit: contain; object-position: center bottom; filter: drop-shadow(3px 5px 0 #31536725); }
.class-number { position: absolute; top: 9px; left: 12px; font: 800 34px/1 var(--heading); color: #426456; opacity: .45; }
.class-element { position: absolute; z-index: 2; top: 12px; right: 10px; padding: 3px 8px; border: 2px solid var(--ink); border-radius: 20px; background: #fff9e9; color: #3b535a; font-size: 10px; font-weight: 800; }
.brawler { --accent: #e69152; --tint: #ffe3bb; }
.kicker { --accent: #bfa134; --tint: #fff0b3; }
.fireblade { --accent: #d66756; --tint: #ffd7c5; }
.navigator { --accent: #3cabb5; --tint: #cbf3f2; }
.class-copy { position: relative; padding: 23px 20px 25px; border-top: 3px solid var(--ink); background: #faedca url('ui/parchment-frame.webp') center/100% 100%; }
.class-copy h3 { font-size: 27px; margin-bottom: 10px; color: #624324; }
.class-copy p { font-size: 14px; color: #4e5a54; line-height: 1.75; }
.section-footnote { width: fit-content; max-width: 100%; margin: 32px auto 0; padding: 8px 12px; border: 14px solid transparent; border-image: url('ui/ribbon.webp') 35 110 fill / 14px 24px stretch; text-align: center; font-size: 13px; color: #59482f; font-weight: 700; }
.section-footnote > span { color: var(--red); margin-right: 8px; }
.world { position: relative; background: url('ui/clouds.webp') center top/1200px auto repeat-x, linear-gradient(#92e2f4, #d9f8f3 70%, #ecfbef); border-block: 3px solid var(--ink); box-shadow: inset 0 6px 0 #fff8ce; }
.world .eyebrow { color: #17656e; }
.feature-grid { display: grid; gap: 24px; }
/* Landscape art stays visible above its parchment copy, without dark overlays. */
.feature { position: relative; display: flex; flex-direction: column; min-width: 0; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff2cf; box-shadow: 0 5px 0 #cc9f43; }
.feature > img, .dungeon-scenes { width: 100%; height: 185px; object-fit: cover; flex-shrink: 0; border-bottom: 3px solid var(--ink); }
.feature-copy { position: relative; flex: 1; padding: 28px 24px; background: #faedca url('ui/parchment-frame.webp') center/100% 100%; }
.feature-kicker { color: #9c3c2c; font-size: 10px; font-weight: 800; letter-spacing: .09em; margin-bottom: 12px; }
.feature h3 { font-size: 32px; color: #294a54; margin-bottom: 14px; }
.feature-copy > p:last-child { color: #4d605c; font-size: 14px; max-width: 420px; line-height: 1.8; }
.islands h3 { display: flex; align-items: baseline; gap: 12px; }
.islands h3 strong { font-size: 74px; line-height: .9; color: #b1442e; }
.pk { background: #91dcdf; }
.pk .feature-copy { flex: 0; margin-top: auto; }
.compass { height: 185px; flex-shrink: 0; display: grid; place-items: center; border-bottom: 3px solid var(--ink); background: radial-gradient(circle, #ffefae 0 38%, transparent 38.5%), repeating-conic-gradient(#ffffff28 0deg 15deg, transparent 15deg 30deg), #8edcde; }
.compass::before { content: ''; width: 145px; height: 145px; background: url('ui/ship-wheel.webp') center/contain no-repeat; transform: rotate(-12deg); }
.compass > span { display: none; }
.pk-states { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.pk-states li { padding: 4px 10px; border: 2px solid #8b713d; border-radius: 7px; background: #fff7dc; color: #664e29; font-size: 12px; font-weight: 800; box-shadow: 0 2px 0 #caa554; }
.pk-states li:first-child { background: #ddf1cb; border-color: #587f43; color: #315a2c; }
.pk-states li:last-child { background: #ffe2cc; border-color: #aa4939; color: #963728; }
.dungeon-scenes { display: flex; }
.dungeon-scenes img { width: 50%; height: 100%; min-width: 0; object-fit: cover; }
.dungeon-scenes img + img { border-left: 3px solid #b78845; }
.dungeon h3 { font-size: 29px; }
.arena > img { object-position: 50% 35%; }
.signup { position: relative; isolation: isolate; text-align: center; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #fffdf0 10%, #ffedb1 75%); padding-block: 80px; }
.signup::before, .signup::after { content: ''; position: absolute; z-index: -1; width: 560px; height: 560px; border: 3px solid #d7aa4733; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.signup::after { width: 640px; height: 640px; border-style: dashed; }
.signup-compass { position: absolute; z-index: -1; left: -140px; top: 30px; font-size: 450px; line-height: 1; color: #d38a1620; }
.signup-inner { max-width: 800px; padding: 36px 8px 28px; border: 18px solid transparent; border-image: url('ui/parchment.webp') 65 52 fill / 22px 18px stretch; filter: drop-shadow(0 7px 0 #b17f3428); }
.signup .eyebrow { color: #875427; }
.signup h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); margin-bottom: 18px; color: #5b3d25; }
.signup-inner > p:not(.eyebrow) { font-size: 16px; color: #5b5b44; }
.signup-form { max-width: 650px; margin: 28px auto 0; text-align: left; }
.signup-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; color: #5b3d25; }
.form-row { display: flex; flex-direction: column; gap: 14px; }
.form-row input { min-width: 0; width: 100%; min-height: 60px; padding: 13px 16px; border: 3px solid #795531; border-radius: 12px; background: #fffdf2; color: var(--ink); box-shadow: inset 0 3px 0 #ead6aa; }
.form-row input::placeholder { color: #657574; }
.form-row .button { flex-shrink: 0; }
.signup-note { margin-top: 18px; text-align: center; font-size: 12px; color: #675a42; line-height: 1.75; }
.form-status { margin-top: 20px; padding: 17px; border: 3px solid #567642; border-radius: 12px; background: #ecf8db; color: #31562e; font-size: 15px; font-weight: 800; text-align: center; box-shadow: 0 3px 0 #b6cd8c; }
.noscript-note { margin-top: 20px; font-size: 13px; }
.footer { padding-block: 28px; background: #b7eced; border-top: 3px solid var(--ink); box-shadow: inset 0 5px 0 #f9ce66; color: #2d5960; font-size: 13px; font-weight: 700; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand { padding-block: 10px; font: 800 16px/1.5 var(--body); color: var(--ink); }
.footer-brand:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer a:last-child { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; }
.footer a:last-child:hover { color: #a3392a; }
@media (min-width: 420px) {
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .portrait { height: 270px; }
  .portrait > img { padding-inline: 5px; }
  .class-element { top: 43px; right: 8px; font-size: 9px; }
  .class-copy { padding: 20px 14px; }
  .class-copy h3 { font-size: 24px; }
  .class-copy p { font-size: 13px; }
  .class-grid .class-card:last-child { grid-column: 1/-1; width: calc(50% - 9px); justify-self: center; }
}
@media (min-width: 640px) {
  .container { width: min(1180px, calc(100% - 64px)); }
  .section { padding-block: 85px; }
  .site-header { padding: 14px 32px; }
  .brand { width: 116px; }
  .site-header nav > a:not(.nav-cta) { display: block; }
  .nav-cta { font-size: 16px; padding-inline: 5px; }
  .hero-content { padding-block: 135px 175px; }
  .hero-content .eyebrow { font-size: 12px; }
  .hero-logo { margin-bottom: 10px; }
  .hero-description { font-size: 17px; padding: 12px 28px; }
  .hero-note { font-size: 13px; }
  .hero-bottom { font-size: 14px; bottom: 34px; }
  .hero-bottom p > span { margin-inline: 14px; }
  .motion-toggle { right: 24px; bottom: 24px; }
  .motion-label { display: inline; }
  .intro { padding-bottom: 40px; }
  .adventure-art { padding: 14px; }
  .adventure-art figcaption { font-size: 12px; }
  .classes { padding-top: 42px; }
  .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .class-grid .class-card:last-child { grid-column: auto; width: 100%; }
  .portrait { height: 290px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-copy { padding: 28px; }
  .signup-inner { padding: 48px 32px 40px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 900px) {
  .form-row { flex-direction: row; }
  .form-row .button { font-size: 17px; }
}
@media (min-width: 1024px) {
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
  .section-description { max-width: 365px; }
  .site-header { padding: 14px max(44px, calc((100vw - 1280px)/2)); }
  .brand { width: 116px; }
  .site-header nav { gap: 32px; }
  .nav-cta { padding-inline: 14px; font-size: 18px; }
  .hero { min-height: max(850px, 100svh); }
  .hero-logo { width: 420px; }
  .hero-content { padding-top: 125px; }
  .intro { padding-top: 100px; padding-bottom: 45px; }
  .adventure-art > img { aspect-ratio: 2.1/1; object-position: center 43%; }
  .classes { padding-bottom: 90px; }
  .class-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
  .portrait { height: 300px; }
  .portrait > img { height: 81%; padding: 0 7px 13px; }
  .portrait::before { width: 165px; height: 165px; top: 92px; }
  .class-copy { padding: 22px 15px 25px; }
  .class-copy h3 { font-size: 25px; }
  .class-copy p { font-size: 13px; }
  .feature-grid { gap: 26px; }
  .feature > img, .dungeon-scenes, .compass { height: 210px; }
  .compass::before { width: 165px; height: 165px; }
  .feature-copy { padding: 30px 34px; }
  .feature h3 { font-size: 37px; }
  .dungeon h3 { font-size: 33px; }
  .islands h3 strong { font-size: 90px; }
  .signup { padding-block: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-video { visibility: hidden; }
  .hero { background: url('hero-poster.webp') center/cover no-repeat; }
  .class-card:hover, .button:hover, .nav-cta:hover, .motion-toggle:hover { transform: none; }
}

/* Character gallery: owner cutouts and alpha skills share the bright game stage. */
.character-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.character-arrow { flex: 0 0 44px; width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 23px; line-height: 1; box-shadow: 0 3px 0 #c69730; }
.character-arrow:hover { background: #ffdf86; }
.character-tabs { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.character-tab { min-height: 62px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff9e9; color: var(--ink); font: 800 18px/1.25 var(--heading); box-shadow: 0 3px 0 #d7bc7c; }
.character-tab > span { display: block; color: #55767a; font: 800 10px/1.3 var(--body); letter-spacing: .13em; }
.character-tab:hover { background: #e5f7ef; }
.character-tab[aria-selected="true"] { background: var(--gold); box-shadow: 0 3px 0 #bb8524, inset 0 3px 0 #ffefa5; }
.character-panel { --accent: #52b784; --tint: #d8f3d3; position: relative; display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: auto 1fr auto; gap: 0 22px; padding: 30px; border: 3px solid var(--ink); border-radius: 24px; background: radial-gradient(ellipse at 17% 48%, var(--tint), transparent 54%), #fff9e8; box-shadow: 0 6px 0 #ddb053, 0 9px 0 var(--ink); }
.character-panel.brawler { --accent: #e69152; --tint: #ffe3bb; }
.character-panel.kicker { --accent: #bfa134; --tint: #fff0b3; }
.character-panel.fireblade { --accent: #d66756; --tint: #ffd7c5; }
.character-panel.navigator { --accent: #3cabb5; --tint: #cbf3f2; }
.character-bio { grid-column: 1; grid-row: 1; position: relative; z-index: 1; }
.character-role { margin-bottom: 7px; color: #456268; font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.character-bio h3 { font-size: clamp(32px, 4vw, 49px); color: #624324; margin-bottom: 10px; }
.character-bio > p:last-child { font-size: 14px; line-height: 1.75; max-width: 390px; }
.character-cutout { grid-column: 1; grid-row: 2; position: relative; display: grid; place-items: end center; min-width: 0; height: 320px; margin-top: 14px; padding: 12px 10px 18px; isolation: isolate; }
.character-cutout::before { content: ''; position: absolute; z-index: -1; width: 230px; height: 230px; max-width: 90%; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 3px dashed var(--accent); border-radius: 50%; opacity: .5; }
.character-cutout::after { content: ''; position: absolute; z-index: -1; bottom: 9px; left: 17%; width: 66%; height: 20px; background: #4d786d24; border-radius: 50%; }
.character-cutout img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(3px 5px 1px #31536722); }
.character-emblem { position: absolute; left: 0; top: 8px; z-index: -1; font: 800 100px/1 var(--heading); color: var(--accent); opacity: .18; }
.character-signature { grid-column: 2; grid-row: 1 / 3; align-self: center; min-width: 0; padding: 16px 0 6px; }
.signature-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px; }
.signature-heading > p { font: 800 18px/1.3 var(--heading); color: #624324; }
.skill-motion { flex-shrink: 0; min-height: 44px; padding: 8px 12px; border: 2px solid #43676a; border-radius: 20px; background: #e3f7ef; color: #284c50; font-size: 12px; font-weight: 800; }
.skill-motion:hover { background: #c8eee2; }
.skill-motion > span { margin-left: 7px; }
.signature-stage { position: relative; width: 100%; aspect-ratio: 640/420; margin-block: 8px; background: radial-gradient(ellipse at 50% 75%, var(--tint), transparent 65%); }
.signature-stage > img, .signature-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.character-signature figcaption { margin: 0 8px; text-align: center; color: #47615b; font-size: 13px; font-weight: 800; line-height: 1.5; }
.character-skills { grid-column: 1/-1; margin-top: 24px; padding-top: 20px; border-top: 2px dashed #c8b482; }
.skill-list-title { display: flex; justify-content: space-between; color: #624324; font: 800 19px/1.3 var(--heading); margin-bottom: 14px; }
.skill-list-title > span { color: var(--accent); }
.character-skills ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.character-skills li { display: flex; align-items: center; min-width: 0; gap: 9px; padding: 9px 8px; background: #fffdf3; border: 2px solid #d6c08e; border-radius: 13px; }
.character-skills li > img { width: 66px; height: 66px; flex-shrink: 0; object-fit: contain; }
.character-skills h4 { margin: 0 0 4px; font: 800 15px/1.3 var(--heading); color: #3a5659; overflow-wrap: anywhere; }
.character-skills li p { font-size: 11px; line-height: 1.5; color: #53625c; }
.character-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-top: 27px; }
.character-footer .section-footnote { margin: 0; }
.character-position { flex-shrink: 0; font-size: 12px; font-weight: 800; color: #4c6264; }
@media (max-width: 1023px) {
  .character-panel { padding: 24px; gap: 0 12px; }
  .character-tabs { gap: 6px; }
  .character-tab { font-size: 16px; padding-inline: 6px; }
  .character-skills ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character-cutout { height: 290px; }
}
@media (max-width: 639px) {
  .character-selector { gap: 8px; }
  .character-arrow { flex-basis: 38px; width: 38px; height: 44px; font-size: 20px; border-width: 2px; }
  .character-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
  .character-tab { grid-column: span 2; min-height: 60px; font-size: 14px; padding: 7px 3px; border-radius: 9px; }
  .character-tab:nth-child(n+4) { grid-column: span 3; }
  .character-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; padding: 23px 16px 20px; border-radius: 18px; }
  .character-bio, .character-cutout, .character-signature { grid-column: 1; }
  .character-bio { grid-row: 1; }
  .character-bio h3 { font-size: 37px; }
  .character-cutout { grid-row: 2; height: 300px; margin-top: 14px; }
  .character-signature { grid-row: 3; padding-top: 18px; }
  .signature-heading { padding: 0; }
  .signature-heading > p { font-size: 16px; }
  .skill-motion { padding-inline: 9px; font-size: 11px; }
  .character-skills { grid-row: 4; margin-top: 20px; }
  .character-skills ul { gap: 9px; }
  .character-skills li { flex-direction: column; align-items: flex-start; padding: 10px; gap: 5px; }
  .character-skills li > img { align-self: center; width: 80px; height: 72px; }
  .character-skills h4 { font-size: 15px; }
  .character-footer { flex-direction: column; gap: 8px; }
}
@media (max-width: 359px) {
  .character-selector { flex-wrap: wrap; justify-content: space-between; }
  .character-tabs { flex-basis: 100%; order: -1; }
  .character-panel { padding-inline: 12px; }
  .signature-heading { flex-wrap: wrap; }
}

/* Logo lettering: a white inner glint, warm gold/orange fill and brown-red edge.
   Solid gold + layered shadows remain legible without background-clip support.
   Keep shadows outside the gradient so they never muddy its transparent fill. */
.heading-lettering {
  --letter-stroke: 4px;
  display: inline-block;
  max-width: 100%;
  color: #ffcf59;
  -webkit-text-stroke: var(--letter-stroke) #60251d;
  paint-order: stroke fill;
  text-shadow: -2px 0 #60251d, 2px 0 #60251d, 0 -2px #60251d,
    -2px 2px #60251d, 2px 2px #60251d, 0 4px #60251d, 0 6px 2px #4d251b55;
}
h3 .heading-lettering { --letter-stroke: 3px; }
.character-skills h4 { line-height: 1.55; }
h4 .heading-lettering { --letter-stroke: 1.5px; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .heading-lettering {
    background: linear-gradient(180deg, #ffffff 18%, #fff6c8 24%, #ffe477 32%, #ffce48 60%, #f69129 95%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 -1px 0 #fff8dc) drop-shadow(0 3px 0 #60251d) drop-shadow(0 3px 1px #4d251b55);
  }
}
/* Opaque reading surfaces make contrast independent of the moving hero and
   preserve the original parchment artwork around, rather than under, copy. */
.site-header { background: #fffbeb; }
.hero-content .eyebrow, .hero-description, .hero-note { background: #fff9e9; }
.hero-bottom { width: fit-content; max-width: calc(100% - 40px); margin-inline: auto; padding: 10px 16px; background: #fff9e9; border: 2px solid var(--ink); border-radius: 16px; }
.hero-bottom p > span { color: #3b535a; }
.feature-copy, .class-copy {
  background-image: linear-gradient(var(--cream), var(--cream)), url('ui/parchment-frame.webp');
  background-origin: content-box, padding-box;
  background-clip: content-box, padding-box;
  background-size: 100% 100%;
}
.signup-inner { background: var(--cream); border-image-slice: 65 52; }
.section-footnote { background: var(--cream); border-image-slice: 35 110; }
.character-tab > span { color: #344c58; }
.adventure-art figcaption { background: var(--cream); border-radius: 3px; }
.form-row input::placeholder { color: #455c60; opacity: 1; }
.skill-list-title > span { color: #8b3627; }
/* Decorative watermarks carry no information; readable text never uses opacity. */
@media (forced-colors: active) {
  .heading-lettering { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; -webkit-text-stroke: 0; text-shadow: none; filter: none; }
}
