/* Independent image assets and semantic HTML; no full-page image or sprite windows. */
:root {
  --cream: #fffaf0;
  --ink: #35140d;
  --gold: #ffcc35;
  --page-width: 1440px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0 auto; max-width: var(--page-width); background: #fffdf8; color: #171717; font: 16px/1.4 'Fredoka', Arial, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #006bb4; outline-offset: 4px; }
h1,h2,h3,p { margin: 0; }
h1, h2, h3, .brand, .button, .site-nav { font-family: 'Fredoka', Arial, sans-serif; }
h2 { color: var(--ink); font-family: 'Fredoka', Arial, sans-serif; }
.reference-art { display: block; width: 100%; height: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; padding: 12px; background: white; z-index: 20; }
.site-header { display: flex; position: relative; align-items: center; justify-content: space-between; padding: 9px 4.7% 4px; height: clamp(84px,8.2vw,118px); background: #fffbf2; }
.brand { width: 11.3%; max-width: 150px; min-width: 100px; }
.brand-text { color: var(--ink); font-size: clamp(21px,2.2vw,32px); font-weight: 700; line-height: .78; letter-spacing: -1.8px; text-align: center; -webkit-text-stroke: .18px currentColor; }
.brand-text span { display: block; }
.brand-text i { display: block; position: absolute; top: -13px; right: 8px; color: #f1b20e; font-style: normal; font-size: 16px; }
.site-nav { display: flex; gap: clamp(20px,3.2vw,46px); align-items: center; }
.site-nav a { position: relative; font-size: clamp(13px,1.25vw,18px); font-weight: 500; padding: 7px 0; transition: color .2s ease; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; border-radius: 99px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .22s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: #9a4619; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav .active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid #fff; border-radius: 999px; background: var(--gold); color: #110c04; font-weight: 600; padding: 10px 24px; }
.button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.button:hover, .button:focus-visible { background: #ffbd20; box-shadow: 0 8px 18px #bf7e1938; transform: translateY(-2px); }
.button:active { transform: translateY(0); box-shadow: 0 3px 8px #bf7e1928; }
.join { font-size: clamp(13px,1.25vw,18px); }
.search-toggle, .menu-toggle { border: 0; padding: 9px; background: transparent; }
.menu-toggle { display: none; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 290px;
  background: #fffbf2 url('/images/assets/hero/temples.png') repeat-x center bottom;
  background-size: auto 36%;
  overflow: hidden;
}
.site-header { z-index: 2; background: #fffbf2; }
.hero-copy { position: relative; z-index: 1; padding: 20px 0 44px 12%; }
.hero-copy h1 { width: 100%; margin: 0 0 6px; }
.hero-copy h1 { color: var(--ink); font-size: clamp(40px,5.4vw,78px); font-weight: 700; letter-spacing: -2.8px; line-height: .92; white-space: nowrap; -webkit-text-stroke: .35px currentColor; }
.hero-copy h2 { font: 600 clamp(15px,2vw,28px)/1.2 'Fredoka', Arial,sans-serif; color: var(--ink); white-space: nowrap; }
.hero-copy p { font-size: clamp(14px,1.56vw,22px); margin-top: 14px; line-height: 1.35; }
.hero-cta { margin-top: 18px; padding: 9px 25px; font-size: clamp(14px,1.56vw,22px); }
.hero-cta span { font-size: 1.5em; line-height: 1; }
.hero-illustration { position: relative; align-self: end; line-height: 0; z-index: 1; }
.hero-characters { display: block; width: 85%; height: auto; }
.hero-values { position: absolute; right: 5%; top: 12%; width: 15%; height: auto; }
.hero-leaves { position: absolute; bottom: 0; height: auto; z-index: 2; }
.hero-leaves-left { left: 0; width: 4.7%; }
.hero-leaves-right { right: 0; width: 8.7%; }
.section { padding: 19px 5.5% 24px; background: radial-gradient(ellipse at 50% 90%,#fcf6e9,transparent 75%),#fffdf8; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2, .shop h2 { font-size: clamp(26px,3.2vw,47px); font-weight: 700; line-height: .95; letter-spacing: -1.3px; -webkit-text-stroke: .18px currentColor; }
.section-heading p, .shop-copy>p { margin-top: 1px; font-size: clamp(15px,1.56vw,22px); }
.outline-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #9fa0a3; border-radius: 999px; background: #fffdfa; padding: 7px 19px; font-size: clamp(11px,1.05vw,15px); white-space: nowrap; transition: border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.outline-link:hover, .outline-link:focus-visible { border-color: #ba7b1a; background: #fff6da; box-shadow: 0 5px 12px #6e42151a; transform: translateY(-2px); }
.outline-link span { display: inline-block; transition: transform .2s ease; }
.outline-link:hover span, .outline-link:focus-visible span { transform: translateX(3px); }
.card-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1.8%; }
.hero-card { overflow: hidden; border: 1px solid var(--card-color); border-radius: 15px; background: #fffdfa; text-align: center; transition: transform .24s ease, box-shadow .24s ease; }
.hero-card:hover, .hero-card:focus-within { transform: translateY(-7px); box-shadow: 0 13px 24px #74450d1c; }
.hero-card .reference-art, .game-cover .reference-art, .story-card .reference-art, .shop-art .reference-art { transition: transform .4s ease; }
.hero-card:hover .reference-art, .game-card:hover .reference-art, .story-card:hover .reference-art, .shop-art:hover .reference-art { transform: scale(1.035); }
.hero-card-copy { padding: 6px 2px 11px; }
.hero-card h3, .game-card h3, .story-card h3 { font-size: clamp(15px,1.5vw,21px); line-height: 1.2; font-weight: 600; }
.hero-card p { margin-top: 3px; font-size: clamp(10px,1.12vw,16px); }
.detail-button { color: #0060bc; border: 0; background: transparent; padding: 10px 4px 0; font-size: clamp(11px,1.08vw,15px); transition: color .2s ease, transform .2s ease; }
.detail-button:hover, .detail-button:focus-visible { color: #a54d12; transform: translateX(2px); }
.games { padding-top: 12px; padding-bottom: 12px; }
.game-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2%; }
.game-card { display: flex; flex-direction: column; align-items: center; background: #fffefb; padding: 8px 10px 12px; border-radius: 17px; text-align: center; transition: transform .24s ease, box-shadow .24s ease; }
.game-card:hover, .game-card:focus-within { transform: translateY(-6px); box-shadow: 0 12px 22px #74450d14; }
.game-cover { width: 64%; margin-bottom: 7px; border-radius: 24px; overflow: hidden; }
.game-card p { font-size: clamp(11px,1.12vw,16px); margin-top: 1px; }
.coming-soon { display: block; padding: 6px 16px; border-radius: 999px; font-size: 11px; background: #ededed; min-width: 65%; margin-top: 10px; }
.stories { padding-top: 7px; padding-bottom: 20px; }
.story-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.5%; }
.story-card .reference-art { border-radius: 12px; }
.story-card h3 { font-size: clamp(12px,1.25vw,18px); margin-top: 4px; transition: color .2s ease; }
.story-card:hover h3, .story-card:focus-within h3 { color: #9a4619; }
.shop { display: flex; position: relative; min-height: 220px; padding: 17px 5.5% 23px; background: #fffaf0; }
.shop-copy { position: relative; z-index: 1; width: 40%; }
.shop h2 { max-width: 384px; }
.shop-description { margin-top: 16px !important; line-height: 1.3; }
.coming-soon-shop { background: #ffdf90; margin-top: 19px; padding: 8px 30px; font-size: 14px; font-weight: 400; }
.shop-art { position: relative; width: 55%; align-self: flex-end; margin-left: -3%; }
.shop-link { position: absolute; right: 5.5%; top: 23px; z-index: 2; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 5.5% 19px; min-height: 65px; background: #fffdf9; }
.footer-brand { width: 147px; flex-shrink: 0; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer button { border: 0; background: none; padding: 5px 0; font-size: 10px; transition: color .2s ease, transform .2s ease; }
.site-footer button:hover, .site-footer button:focus-visible { color: #9a4619; transform: translateY(-1px); }
.site-footer p { font-size: 9px; }
dialog { border: 1px solid #edd8a6; border-radius: 20px; padding: 32px; max-width: 470px; width: calc(100% - 32px); color: var(--ink); background: #fffaf0; }
dialog::backdrop { background: #35140d80; }
dialog h2 { font-size: 28px; line-height: 1.2; padding-right: 18px; }
dialog p { margin: 16px 0 22px; }
.dialog-close { position: absolute; right: 12px; top: 9px; border: 0; background: transparent; font-size: 26px; }
dialog label { display: block; margin: 18px 0 8px; }
dialog input { width: 100%; padding: 12px; border: 1px solid #b9a991; border-radius: 8px; }
#search-results { padding-left: 20px; max-height: 280px; overflow-y: auto; }
#search-results li { padding: 5px; }
.not-found { padding: 80px 24px; text-align: center; }
.site-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 20px; overflow: hidden; background: #fffaf0; color: var(--ink); opacity: 1; transition: opacity .42s ease, visibility .42s ease; }
.site-loader.is-loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-halo { position: absolute; width: min(72vw, 580px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffda654d 0 19%, #ffda651d 40%, transparent 68%); filter: blur(3px); }
.loader-halo::before, .loader-halo::after { content: ''; position: absolute; inset: 22%; border: 1px solid #e8b12d55; border-radius: 50%; }
.loader-halo::after { inset: 31%; border-color: #b95a2938; }
.loader-mark { position: relative; display: grid; text-align: center; color: var(--ink); font: 700 clamp(30px,6vw,68px)/.76 'Fredoka', Arial, sans-serif; letter-spacing: -2px; -webkit-text-stroke: .25px currentColor; animation: loader-float 2.4s ease-in-out infinite; }
.loader-mark span { display: block; }
.loader-mark i { position: absolute; top: -20px; right: 4%; color: #f1b20e; font: normal 24px/1 Arial,sans-serif; }
.loader-orbit { position: relative; display: flex; align-items: center; justify-content: center; width: 120px; height: 28px; gap: 11px; }
.loader-orbit b { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 2px 5px #b6701533; animation: loader-dot 1.1s ease-in-out infinite; }
.loader-orbit b:nth-child(2) { animation-delay: .16s; background: #e78a32; }
.loader-orbit b:nth-child(3) { animation-delay: .32s; background: #147cc3; }
.site-loader p { position: relative; margin: 0; color: #765347; font-size: 15px; letter-spacing: .02em; }
.loader-dots { display: inline-block; width: 20px; overflow: hidden; vertical-align: bottom; animation: loader-ellipsis 1.1s steps(4,end) infinite; }
@keyframes loader-float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-7px) scale(1.02); } }
@keyframes loader-dot { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-8px); opacity: 1; } }
@keyframes loader-ellipsis { 0% { width: 0; } 100% { width: 20px; } }
@media (min-width: 1200px) {
  .section { padding-top: 28px; padding-bottom: 28px; }
  .section-heading { margin-bottom: 24px; }
  .hero-card-copy { padding: 10px 3px 16px; }
  .shop { min-height: 290px; }
  .shop-description { margin-top: 24px !important; }
}
@media (max-width: 760px) {
  .site-header { height: 80px; padding: 8px 5%; }
  .brand { width: 96px; min-width: 0; }
  .menu-toggle { display: block; margin-left: auto; margin-right: 12px; font-size: 24px; }
  .header-actions { gap: 5px; }
  .join { padding: 9px 17px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 80px; z-index: 5; background: #fffaf0; box-shadow: 0 8px 14px #35140d14; padding: 12px 5%; flex-wrap: wrap; gap: 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 15px; }
  .hero { display: block; min-height: 0; background-size: auto 20%; }
  .hero-copy { padding: 26px 5% 0; }
  .hero h1 { max-width: 470px; font-size: clamp(39px,10vw,64px); white-space: normal; letter-spacing: -1.6px; }
  .hero h2 { font: 600 clamp(15px,3.5vw,22px)/1.3 'Fredoka', Arial,sans-serif; margin-top: 6px; white-space: normal; }
  .hero p { font-size: 16px; max-width: 440px; margin-top: 16px; }
  .desktop-break { display: none; }
  .hero-cta { margin: 19px 0 5px; padding: 11px 23px; font-size: 15px; }
  .hero-illustration { margin-top: 14px; }
  .hero-characters { width: 86%; }
  .hero-values { right: 2%; width: 14%; }
  .hero-leaves-left { display: none; }
  .hero-leaves-right { width: 13%; }
  .section { padding: 23px 5% 26px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 17px; }
  .section-heading p { font-size: 15px; }
  .section-heading h2 { max-width: 100%; }
  .outline-link { font-size: 11px; padding: 7px 14px; }
  .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .hero-card h3,.game-card h3 { font-size: 16px; }
  .hero-card p { font-size: 11px; }
  .hero-card-copy { padding: 8px 3px 12px; }
  .detail-button { font-size: 12px; }
  .game-grid,.story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .game-card p { font-size: 12px; }
  .story-card h3 { font-size: 13px; }
  .shop { padding: 24px 5% 0; flex-direction: column; }
  .shop-copy { width: 100%; }
  .shop-copy>p { font-size: 15px; }
  .shop-art { width: 100%; margin: 20px 0 0; }
  .shop-link { position: static; align-self: flex-start; margin: 16px 0; order: 3; }
  .site-footer { flex-wrap: wrap; padding: 20px 5%; gap: 14px; }
  .site-footer nav { flex-wrap: wrap; }
  .site-footer p { width: 100%; font-size: 11px; }
}
@media (max-width: 440px) {
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .hero-card:last-child { grid-column: 1 / -1; width: calc((100% - 13px)/2); justify-self: center; }
  .hero-card p { font-size: 10.5px; }
  .hero h2 { font-size: 15px; }
  .games h2 { max-width: 290px; }
  .site-footer nav { gap: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
