/* The Sharp Sword's palette: sky, ink outlines, cream cards, sunset orange and gold. */
:root {
  --ink: #1b2a41; --cream: #fff8ec; --sky: #9ad9ff; --sky2: #cdeeff; --accent: #e4572e; --gold: #ffd166;
  --grass: #7cc957; --plum: #3a1d6e; --violet: #7b2cbf; --pink: #ff6b8b; --peach: #ff9f6e; --muted: #4a5670;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: Rubik, system-ui, sans-serif; color: var(--ink); background: var(--sky); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
section { position: relative; overflow: hidden; }

/* Chunky outlined game titles */
.stroke { color: #fff; -webkit-text-stroke: .1em var(--ink); paint-order: stroke fill; text-shadow: 0 .1em 0 rgba(27,42,65,.35); }
.title { font-weight: 900; line-height: 1.02; letter-spacing: -.01em; }

.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  padding: 16px 34px; border-radius: 999px; border: 4px solid var(--ink); box-shadow: 0 7px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.btn:hover, .btn:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--ink); }
.btn.gold { background: var(--gold); }
.btn.red { background: var(--accent); color: #fff; }
.btn.cream { background: var(--cream); }
.btn.pink { background: var(--pink); color: #fff; }
.btn span { font-size: 1.4em; line-height: 1; }

/* Big game icon tiles */
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile { background: var(--cream); border: 4px solid var(--ink); border-radius: 30px; padding: 22px 20px 24px; box-shadow: 0 8px 0 var(--ink);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.tile .ic { width: 104px; height: 104px; display: grid; place-items: center; font-size: 62px; line-height: 1; border-radius: 28px;
  border: 4px solid var(--ink); box-shadow: inset 0 -10px 0 rgba(27,42,65,.14), 0 5px 0 var(--ink); }
.tile h3 { font-size: 1.4rem; font-weight: 900; margin-top: 4px; }
.tile p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.bg-gold { background: var(--gold); } .bg-red { background: #ff8a65; } .bg-sky { background: var(--sky); } .bg-grass { background: var(--grass); }
.bg-pink { background: #ffb3c7; } .bg-violet { background: #c9a7eb; }

/* Reveal on scroll */
.rv { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* 3D canvases: a still picture shows until WebGL is ready */
.three { position: relative; }
.three canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.three canvas:active { cursor: grabbing; }
.three .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.three.ready .fallback { display: none; }

/* 1. Hero */
.hero { min-height: 100vh; min-height: 100svh; background: linear-gradient(180deg, #7cc8f5 0%, var(--sky) 40%, var(--sky2) 100%);
  display: flex; flex-direction: column; padding-top: 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 2; }
.logo { display: inline-flex; align-items: center; gap: 10px; background: var(--cream); border: 4px solid var(--ink); border-radius: 999px;
  padding: 6px 18px 6px 8px; box-shadow: 0 5px 0 var(--ink); font-weight: 900; font-size: 1.2rem; text-decoration: none; direction: ltr; }
.logo img { width: 40px; height: 40px; border-radius: 12px; }
.logo b { color: var(--accent); } .logo em { font-style: normal; color: var(--violet); }
.hero .grid { flex: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 10px; align-items: center; }
.hero h1 { font-size: clamp(4rem, 13vw, 9.5rem); }
.hero h1 .w1 { color: var(--gold); } .hero h1 .w2 { color: #fff; }
.hero .tag { margin-top: 18px; font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 800; line-height: 1.4; max-width: 22ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stage { height: min(78vh, 720px); min-height: 420px; }
.bubble { position: absolute; top: 10%; left: 30%; translate: -50% -100%; background: #fff; border: 4px solid var(--ink); border-radius: 26px; padding: 10px 18px;
  font-weight: 900; font-size: clamp(1rem, 2vw, 1.35rem); box-shadow: 0 6px 0 var(--ink); white-space: nowrap; z-index: 2; pointer-events: none; }
.bubble::after { content: ""; position: absolute; bottom: -20px; left: 50%; translate: -50% 0; border: 11px solid transparent; border-top: 13px solid var(--ink); }
.b-itay { left: 62%; top: 30%; }
.three:not(.ready) .bubble { display: none; }
.drag { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(27,42,65,.55); color: #fff; font-weight: 700;
  border-radius: 999px; padding: 6px 16px; font-size: .95rem; pointer-events: none; white-space: nowrap; }

/* Ground strip between sections, like the game's grass and street */
.ground { height: 46px; background: linear-gradient(180deg, var(--grass) 0 60%, #5aa83e 60% 100%); border-top: 5px solid var(--ink); }
.street { height: 56px; background: #5b6474; border-top: 5px solid var(--ink); border-bottom: 5px solid var(--ink); position: relative; }
.street::after { content: ""; position: absolute; inset: 50% 0 auto; height: 6px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #f4f1de 0 50px, transparent 50px 100px); }

/* 2. Who built it */
.who { background: var(--cream); padding: 120px 0 130px; text-align: center; }
.who .q { font-size: clamp(1.8rem, 5.5vw, 3rem); font-weight: 900; color: var(--muted); }
.who .a { margin-top: 10px; font-size: clamp(5rem, 20vw, 13rem); }
.who .a .w1 { color: var(--accent); } .who .a .w2 { color: var(--gold); }
.domain { display: inline-flex; margin-top: 30px; direction: ltr; font-weight: 900; font-size: clamp(1.8rem, 6vw, 3.2rem); background: var(--ink); color: var(--cream);
  padding: 12px 34px; border-radius: 24px; box-shadow: 0 8px 0 rgba(27,42,65,.3); }
.domain b { color: var(--gold); } .domain em { font-style: normal; color: #ff8a65; }
.who .story { margin: 40px auto 0; max-width: 40ch; font-size: clamp(1.2rem, 2.8vw, 1.5rem); line-height: 1.7; font-weight: 500; }
.who .tiles { margin-top: 60px; }

/* 3. The Sharp Sword */
.sword { background: linear-gradient(180deg, #ffb27a 0%, var(--peach) 18%, var(--pink) 48%, var(--violet) 82%, var(--plum) 100%); padding: 110px 0 120px; color: #fff; }
.sword .sunball { position: absolute; width: 640px; height: 640px; border-radius: 50%; top: -260px; right: -200px;
  background: radial-gradient(circle, #ffe08a 0%, #ffd166 45%, rgba(255,209,102,0) 70%); }
.gamehead { position: relative; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; text-align: center; }
.gamehead img { width: clamp(96px, 16vw, 168px); height: auto; border-radius: 36px; filter: drop-shadow(0 10px 0 rgba(27,42,65,.35)); }
.gamehead h2 { font-size: clamp(3.6rem, 12vw, 8.5rem); }
.gamesub { position: relative; text-align: center; margin-top: 16px; font-size: clamp(1.4rem, 3.8vw, 2.4rem); font-weight: 900; color: var(--cream);
  -webkit-text-stroke: .12em var(--plum); paint-order: stroke fill; }
.by { position: relative; display: table; margin: 22px auto 0; background: var(--cream); color: var(--ink); border: 4px solid var(--ink); border-radius: 999px;
  padding: 8px 24px; font-weight: 900; font-size: 1.25rem; box-shadow: 0 5px 0 var(--ink); }
.bigshot { position: relative; margin: 54px auto 0; max-width: 1180px; border: 12px solid var(--cream); border-radius: 36px; overflow: hidden;
  box-shadow: 0 0 0 6px var(--ink), 0 30px 60px rgba(18,23,43,.5); transform: rotate(-1.2deg); }
.gamecopy { position: relative; margin: 54px auto 0; max-width: 46ch; text-align: center; font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.75; font-weight: 500; }
.sword .tiles { position: relative; margin-top: 54px; color: var(--ink); }
.dragonbox { position: relative; margin-top: 70px; background: rgba(255,248,236,.12); border: 4px solid var(--cream); border-radius: 40px; padding: 30px 16px 10px; }
.dragonbox h3 { text-align: center; font-size: clamp(2rem, 6vw, 3.6rem); }
.dragonbox .names { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-weight: 900; font-size: clamp(1rem, 2.6vw, 1.4rem); color: var(--cream); padding-bottom: 14px; }
#dragons { height: clamp(260px, 38vw, 440px); }

/* 4. Let's Get Ready */
.getready { background: radial-gradient(ellipse at 50% 0%, #7a2f8a 0%, #3a1450 50%, #1c0a2c 100%); padding: 110px 0 120px; color: #fff; }
.getready .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 50px; }
.poster { border: 12px solid var(--cream); border-radius: 36px; overflow: hidden; box-shadow: 0 0 0 6px var(--ink), 0 30px 60px rgba(0,0,0,.55);
  transform: rotate(2deg); max-width: 560px; justify-self: center; }
.getready .gamesub { -webkit-text-stroke-color: #5a1a6e; }
.getready .gamecopy { margin: 0; text-align: right; }
.getready .tiles { margin-top: 34px; grid-template-columns: 1fr 1fr; color: var(--ink); }
.getready .tile .ic { width: 84px; height: 84px; font-size: 48px; }
.sparkle { position: absolute; color: #ffe08a; font-size: 2rem; animation: tw 3s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .2; transform: scale(.6); } }

/* 5. Closed world */
.closed { background: var(--sky); padding: 120px 0; text-align: center; }
.closed .lock { font-size: clamp(6rem, 18vw, 10rem); line-height: 1; filter: drop-shadow(0 8px 0 rgba(27,42,65,.25)); }
.closed h2 { margin-top: 14px; font-size: clamp(2.6rem, 8vw, 5.2rem); }
.closed .lead { margin: 26px auto 0; max-width: 44ch; font-size: clamp(1.2rem, 2.8vw, 1.5rem); line-height: 1.7; font-weight: 500; }
.closed .tiles { margin-top: 56px; }
.closed .ctas { margin-top: 52px; }

/* 6. Other parents */
.parents { background: linear-gradient(180deg, var(--peach) 0%, var(--pink) 45%, var(--violet) 100%); padding: 120px 0 130px; color: #fff; text-align: center; }
.parents h2 { font-size: clamp(2.8rem, 9vw, 6rem); }
.parents .lead { margin: 26px auto 0; max-width: 46ch; font-size: clamp(1.2rem, 2.8vw, 1.5rem); line-height: 1.7; font-weight: 500; }
.parents .tiles { margin-top: 56px; color: var(--ink); }
.contact { margin: 80px auto 0; max-width: 980px; display: grid; grid-template-columns: 340px 1fr; align-items: center; background: var(--cream); color: var(--ink);
  border: 5px solid var(--ink); border-radius: 44px; box-shadow: 0 12px 0 var(--ink); overflow: hidden; text-align: right; }
.contact .portrait { height: 400px; background: linear-gradient(180deg, var(--sky) 0%, var(--sky2) 100%); border-left: 5px solid var(--ink); }
.contact .body { padding: 34px 36px; }
.contact .small { font-weight: 800; color: var(--muted); font-size: 1.15rem; }
.contact .name { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 900; line-height: 1.1; margin-top: 6px; }
.contact .role { display: inline-block; margin-top: 10px; background: var(--gold); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 16px; font-weight: 900; }
.contact p { margin-top: 18px; font-size: 1.2rem; line-height: 1.65; }
.contact .btn { margin-top: 24px; }

footer { background: var(--ink); color: #c9d2e4; text-align: center; padding: 40px 16px 46px; font-size: 1rem; line-height: 2; }
footer a { color: var(--gold); font-weight: 700; }

@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; text-align: center; padding-top: 24px; }
  .hero .tag { margin-left: auto; margin-right: auto; }
  .hero .ctas { justify-content: center; }
  .stage { height: 62vh; min-height: 380px; }
  .getready .grid { grid-template-columns: 1fr; gap: 40px; }
  .getready .gamecopy { text-align: center; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; text-align: center; }
  .contact .portrait { height: 320px; border-left: 0; border-bottom: 5px solid var(--ink); }
}
@media (max-width: 520px) {
  .getready .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .getready .tile { padding: 16px 10px; }
  .getready .tile h3 { font-size: 1.1rem; }
  .bubble { font-size: .9rem; padding: 6px 12px; border-width: 3px; }
  .topbar .btn { display: none; }
  .topbar { justify-content: center; }
}

.footnav { margin-bottom: 8px; }
.footnav a { display: inline-block; background: var(--cream); color: var(--ink); border: 3px solid var(--cream); border-radius: 999px; padding: 4px 18px; font-weight: 900; text-decoration: none; }

/* Contact form */
.cf { display: grid; gap: 14px; margin-top: 20px; text-align: right; }
.cf label { display: grid; gap: 6px; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.cf input, .cf select, .cf textarea { font: inherit; font-weight: 500; font-size: 1.1rem; color: var(--ink); background: #fff; border: 3px solid var(--ink);
  border-radius: 18px; padding: 12px 16px; width: 100%; box-shadow: inset 0 3px 0 rgba(27,42,65,.08); }
.cf textarea { resize: vertical; min-height: 96px; }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: 4px solid var(--gold); outline-offset: 1px; }
.cf .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf .btn { justify-self: start; margin-top: 6px; border: 4px solid var(--ink); cursor: pointer; font-family: inherit; }
.cf .btn:disabled { opacity: .6; cursor: default; }
.cf-status { min-height: 1.4em; font-weight: 800; font-size: 1.1rem; margin: 0; }
.cf-status.ok { color: #2d7a38; font-size: 1.35rem; }
.cf-status.err { color: #c0392b; }
.cf.sent label, .cf.sent .btn { display: none; }
@media (max-width: 900px) { .cf .btn { justify-self: stretch; justify-content: center; } }
.contact .portrait { align-self: stretch; height: auto; min-height: 400px; }
@media (max-width: 900px) { .contact .portrait { min-height: 0; height: 320px; } }
