/* Juicicora - the game's own look, cinematic: full-bleed island shots, frosted-glass panels, the ink outline on everything
   (the toon outline the game draws) now with soft layered shadows, juicy fruit colours. One bright world, single-theme. */
:root {
  --sky: #E4F4FF;        /* page ground: Elyndor's morning sky */
  --sky-deep: #B4DFFC;   /* bands */
  --paper: #FFFFFF;
  --glass: rgba(255, 255, 255, .72);
  --ink: #23222E;        /* outlines, headings */
  --text: #3B3A4A;
  --muted: #5E6177;
  --juice: #FF9A1F;      /* the accent: a bottle of Blazers */
  --juice-ink: #A85500;  /* juice-coloured text on light */
  --berry: #FF5C8A;
  --leaf: #5BC86A;
  --violet: #9B7BFF;
  --night: #161B38;      /* the Early Access band */
  --night-2: #222A55;
  --night-text: #E9ECFF;
  --font-display: 'Fredoka', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --line: 3px solid var(--ink);
  --line-soft: 2px solid var(--ink);
  /* layered: a short ink edge (the toon look) + a long soft fall */
  --lift: 3px 4px 0 var(--ink), 0 22px 44px -18px rgba(24, 34, 70, .45);
  --lift-sm: 2px 3px 0 var(--ink), 0 12px 26px -14px rgba(24, 34, 70, .4);
  --r: 26px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--sky) 0%, #F2F9FF 55%, var(--sky) 100%);
  background-color: var(--sky);
  color: var(--text);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--juice-ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--berry); color: #fff; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.04; text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.28rem; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--juice-ink); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }

/* buttons: a squishy jelly press */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .82em 1.4em;
  font: 600 1.04rem/1 var(--font-display); color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, #FFB347, var(--juice)); border: var(--line); border-radius: 999px; box-shadow: var(--lift-sm);
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 3px 5px 0 var(--ink), 0 18px 30px -14px rgba(24, 34, 70, .5); color: var(--ink); }
.btn:active { transform: translateY(2px) scaleY(.95); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: var(--paper); }
.btn svg { width: 1.1em; height: 1.1em; }

/* top bar: frosted glass */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(228, 244, 255, .9); }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .62); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: var(--line-soft); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 9px; }
.bar .logo { display: flex; align-items: center; text-decoration: none; }
.bar .logo img { height: 44px; width: auto; }
.bar nav { display: flex; gap: 6px; }
.bar nav a { font: 600 .96rem var(--font-display); color: var(--ink); text-decoration: none; padding: .45em .85em; border-radius: 999px; transition: background .15s ease; }
.bar nav a:hover { background: rgba(35, 34, 46, .07); color: var(--ink); }
.bar .btn { padding: .62em 1.05em; font-size: .94rem; }
@media (max-width: 880px) { .bar nav { display: none; } }

/* hero: the island, full width, the words on a frosted card */
.hero { position: relative; overflow: hidden; border-bottom: var(--line); min-height: clamp(520px, 74vh, 800px); display: grid; align-items: end; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 26s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 22, 52, .55) 0%, rgba(14, 22, 52, .15) 45%, rgba(14, 22, 52, 0) 70%), linear-gradient(0deg, rgba(14, 22, 52, .35), rgba(14, 22, 52, 0) 40%); pointer-events: none; }
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-1.5%); } }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-block: clamp(36px, 6vw, 72px); }
.hero .panel {
  max-width: 560px; display: grid; gap: 18px; justify-items: start;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: var(--line); border-radius: var(--r); box-shadow: var(--lift); padding: clamp(22px, 3.4vw, 36px);
}
.hero .wordmark { width: min(380px, 86%); height: auto; filter: drop-shadow(2px 3px 0 rgba(35, 34, 46, .22)); margin: -4px 0 -2px -4px; }
.hero .lede { font-size: 1.14rem; max-width: 40ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span { font: 600 .86rem var(--font-display); color: var(--ink); background: rgba(255, 255, 255, .85); border: var(--line-soft); border-radius: 999px; padding: .3em .8em; }

/* pictures: outlined, soft-lifted */
.shot { border: var(--line); border-radius: var(--r); box-shadow: var(--lift); overflow: hidden; background: var(--sky-deep); }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.03); }

/* the intro */
.intro .wrap { padding-block: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.intro .body { display: grid; gap: 16px; max-width: 62ch; font-size: 1.08rem; }
@media (max-width: 880px) { .intro .wrap { grid-template-columns: 1fr; } }

/* features: big picture + words, alternating */
.feature { padding-block: clamp(40px, 6vw, 80px); }
.feature .grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 72px); align-items: center; }
.feature.flip .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.feature.flip .grid > .media { order: 2; }
.feature .words { display: grid; gap: 16px; }
.feature .words p { max-width: 52ch; }
.feature .media { position: relative; }
.feature .media .shot + .shot { position: absolute; width: 44%; right: -4%; bottom: -14%; transform: rotate(-2deg); }
.feature.flip .media .shot + .shot { right: auto; left: -4%; transform: rotate(2deg); }
@media (max-width: 880px) {
  .feature .grid, .feature.flip .grid { grid-template-columns: 1fr; }
  .feature.flip .grid > .media { order: 0; }
  .feature .media .shot + .shot { position: static; width: 100%; transform: none; margin-top: 14px; }
}

/* chips: fruit, souls */
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 4px 0 0; list-style: none; }
.chips li { font: 600 .86rem var(--font-display); color: var(--ink); background: var(--paper); border: var(--line-soft); border-radius: 999px; padding: .28em .75em; display: inline-flex; align-items: center; gap: .45em; box-shadow: 0 6px 14px -10px rgba(24, 34, 70, .5); }
.chips li i { width: .8em; height: .8em; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.chips li small { font-family: var(--font-body); font-weight: 600; color: var(--muted); }

/* the calendar: a real month on Elyndor - 25 days */
.month { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 3px; margin-top: 6px; }
.month b { height: 28px; border: 2px solid var(--ink); border-radius: 7px; }
.month .bloom { background: #8BE08F; } .month .blaze { background: #FFB347; } .month .frost { background: #CFE9FF; } .month .storm { background: #8E8CD8; }
.month .trade { position: relative; }
.month .trade::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--ink); }
.seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: .92rem; }
.seasons div { display: grid; gap: 2px; }
.seasons strong { font-family: var(--font-display); color: var(--ink); }
@media (max-width: 520px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .month b { height: 20px; border-radius: 4px; } }

/* voyages: a sky band */
.voyages { background: linear-gradient(180deg, var(--sky-deep), #CDE9FF); border-block: var(--line); padding-block: clamp(56px, 8vw, 104px); }
.voyages .vtop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4.5vw, 64px); align-items: center; margin-bottom: 34px; }
.voyages .head { display: grid; gap: 14px; max-width: 58ch; }
@media (max-width: 880px) { .voyages .vtop { grid-template-columns: 1fr; } }
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.vlist li { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: var(--line); border-top-width: 10px; border-radius: 20px; box-shadow: var(--lift-sm); overflow: hidden; transition: transform .18s ease; }
.vlist li:hover { transform: translateY(-3px); }
.vlist li:nth-child(5n+1) { border-top-color: var(--juice); } .vlist li:nth-child(5n+2) { border-top-color: var(--violet); }
.vlist li:nth-child(5n+3) { border-top-color: var(--berry); } .vlist li:nth-child(5n+4) { border-top-color: var(--leaf); } .vlist li:nth-child(5n+5) { border-top-color: #5FA8FF; }
.vlist li div { padding: 16px 18px 18px; display: grid; gap: 5px; align-content: start; }
.vlist li span { font: 600 .72rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--juice-ink); }
.vlist li p { font-size: .94rem; color: var(--muted); }
.voyages .more { margin-top: 20px; max-width: 70ch; }

/* gallery */
.gallery { padding-block: clamp(56px, 8vw, 104px); }
.gallery .head { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.ggrid button { all: unset; cursor: zoom-in; border: var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--lift-sm); background: var(--sky-deep); }
.ggrid button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.ggrid button:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 16, 36, .9); backdrop-filter: blur(6px); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: 86vh; width: auto; border: 3px solid #fff; border-radius: 18px; }
.lightbox button { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); font: 700 1.05rem var(--font-display); background: #fff; color: var(--ink); border: var(--line); border-radius: 999px; padding: .45em 1em; cursor: pointer; }

/* early access: night on Elyndor */
.ea { background: radial-gradient(120% 140% at 85% 0%, var(--night-2) 0%, var(--night) 60%); color: var(--night-text); border-top: var(--line); }
.ea .wrap { padding-block: clamp(60px, 9vw, 110px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.ea h2 { color: #fff; }
.ea .eyebrow { color: var(--juice); }
.ea .body { display: grid; gap: 16px; }
.ea .body p { max-width: 56ch; }
.ea .stars { border: 3px solid rgba(255, 255, 255, .85); border-radius: var(--r); padding: 26px; display: grid; gap: 10px; font-size: .97rem; background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.ea .stars strong { font-family: var(--font-display); color: #fff; font-size: 1.15rem; }
.ea .stars span { display: flex; gap: .6em; align-items: baseline; }
.ea .stars span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--juice); flex: none; transform: translateY(-1px); }
@media (max-width: 880px) { .ea .wrap { grid-template-columns: 1fr; } }

footer { background: var(--night); color: #AEB5E0; border-top: 1px solid #2B3366; }
footer .wrap { padding-block: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .92rem; }
footer a { color: #FFC37A; }
footer .mail { user-select: all; }

/* gentle scroll-in: sections start in place (fully visible); the ones below the first screen rise a little as they arrive */
.rise { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.rise.below { transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .rise.below { transform: none; }
}
