/* ===================================================================
   Three Dots Team — Playful Arcade theme
   Cream paper · thick ink outlines · hard shadows · vivid blocks
=================================================================== */
:root {
  --paper:   #FFF6E6;
  --paper-2: #FBE9C8;
  --ink:     #171514;
  --white:   #ffffff;

  /* game colors */
  --green:  #7ED957;
  --yellow: #FFD23F;
  --sky:    #79C7FF;
  --coral:  #FF7A5C;
  --lav:    #C4A0FF;
  --pink:   #FF9DC7;
  --teal:   #57DBC9;

  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --bd: 3px solid var(--ink);
  --r: 20px;
  --wrap: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* subtle dotted paper texture */
  background-image: radial-gradient(var(--paper-2) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display, .brand-name { font-family: "Fredoka", sans-serif; }
.display { font-weight: 700; line-height: 0.98; letter-spacing: -0.01em; text-transform: uppercase; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* three-dot motif */
.dots { display: inline-flex; gap: 5px; align-items: center; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; border: 2px solid var(--ink); }
.dots i:nth-child(1) { background: var(--coral); }
.dots i:nth-child(2) { background: var(--yellow); }
.dots i:nth-child(3) { background: var(--teal); }
.dots.big i { width: 22px; height: 22px; border-width: 3px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border: var(--bd); border-radius: 999px;
  background: var(--white); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-pop { background: var(--yellow); }
.btn-plain { background: var(--white); }
.btn-lg { font-size: 1.1rem; padding: 15px 30px; }

/* ===== Tags / stickers ===== */
.tag {
  display: inline-block; font-family: "Fredoka", sans-serif; font-weight: 600;
  font-size: .9rem; padding: 6px 14px; border: var(--bd); border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.tag-1 { transform: rotate(-2deg); background: var(--teal); }
.tag-2 { background: var(--pink); transform: rotate(-1.5deg); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: var(--bd);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-family: "Fredoka", sans-serif; font-weight: 500; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--ink); border-radius: 3px; transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; }

/* ===== Hero ===== */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy .display { font-size: clamp(2.6rem, 6vw, 5rem); }
.hl { position: relative; color: var(--ink); white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 6%; height: 42%;
  background: var(--coral); z-index: -1; transform: rotate(-1.5deg); border-radius: 4px;
}
.lead { font-size: 1.2rem; margin: 26px 0 30px; max-width: 30em; }
.lead strong { background: var(--yellow); padding: 1px 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero art — floating stickers */
.hero-art { position: relative; min-height: 420px; }
.sticker {
  position: absolute; border: var(--bd); border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--white);
  animation: bob 6s ease-in-out infinite;
}
.sticker img { width: 100%; height: 100%; object-fit: cover; }
.s1 { width: 210px; height: 210px; top: 20px; left: 30px; transform: rotate(-8deg); z-index: 3; }
.s2 { width: 150px; height: 150px; top: 0; right: 20px; transform: rotate(7deg); z-index: 4; animation-delay: .8s; }
.s3 { width: 160px; height: 160px; bottom: 30px; left: 0; transform: rotate(6deg); z-index: 2; animation-delay: 1.6s; }
.s4 { width: 175px; height: 175px; bottom: 10px; right: 40px; transform: rotate(-6deg); z-index: 3; animation-delay: 2.4s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.spark { position: absolute; font-size: 1.6rem; color: var(--ink); animation: twinkle 2.4s ease-in-out infinite; }
.spark-a { top: 6px; left: 50%; }
.spark-b { bottom: 60px; right: 8px; animation-delay: .7s; font-size: 1.2rem; }
.spark-c { top: 46%; left: 8px; animation-delay: 1.3s; font-size: 1.3rem; }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); opacity: .35; } 50% { transform: scale(1.35) rotate(20deg); opacity: 1; } }

/* ===== Marquee ===== */
.marquee {
  background: var(--ink); color: var(--yellow);
  border-top: var(--bd); border-bottom: var(--bd);
  overflow: hidden; white-space: nowrap; padding: 12px 0;
}
.marquee-track { display: inline-flex; animation: scroll 22s linear infinite; }
.marquee-track span {
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.4rem;
  letter-spacing: .04em; padding-right: 8px;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Games ===== */
.games-sec { padding: 76px 0; }
.sec-head { margin-bottom: 44px; }
.sec-title { font-size: clamp(2.2rem, 5vw, 3.4rem); position: relative; display: inline-block; }
.squiggle { display: block; width: 68%; height: 16px; color: var(--coral); margin-top: 4px; }
.sec-sub { font-size: 1.15rem; margin-top: 10px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.card {
  border: var(--bd); border-radius: var(--r); padding: 24px;
  box-shadow: var(--shadow); background: var(--white);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:nth-child(odd)  { transform: rotate(-1.2deg); }
.card:nth-child(even) { transform: rotate(1.2deg); }
.card:hover { transform: rotate(0) translate(-3px,-5px); box-shadow: var(--shadow-lg); }
.c-green  { background: var(--green); }
.c-yellow { background: var(--yellow); }
.c-sky    { background: var(--sky); }
.c-coral  { background: var(--coral); }
.c-lav    { background: var(--lav); }
.c-pink   { background: var(--pink); }
.c-teal   { background: var(--teal); }

.card-top { align-self: flex-start; margin-bottom: 18px; }
.card-top img {
  width: 92px; height: 92px; border-radius: 20px; border: var(--bd);
  box-shadow: var(--shadow-sm); background: var(--white);
}
.card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; line-height: 1.1; }
.card p { font-size: .95rem; flex: 1; font-weight: 500; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.chip {
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .8rem;
  padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--white);
}
.go {
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .92rem;
  padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  box-shadow: 2px 2px 0 rgba(0,0,0,.25);
  transition: transform .12s ease;
}
.go:hover { transform: translate(-1px,-1px); }

/* more-soon tile */
.card-soon {
  background: var(--paper);
  background-image: radial-gradient(var(--paper-2) 2px, transparent 2px);
  background-size: 16px 16px;
  align-items: flex-start; justify-content: center;
  border-style: dashed;
}
.card-soon .dots { margin-bottom: 16px; }
.card-soon h3 { font-size: 1.3rem; }

/* ===== About ===== */
.about {
  background: var(--teal);
  border-top: var(--bd); border-bottom: var(--bd);
  padding: 80px 0;
}
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.about-badge {
  background: var(--white); border: var(--bd); border-radius: 28px;
  box-shadow: var(--shadow-lg); padding: 48px 30px; text-align: center;
  transform: rotate(-3deg);
}
.about-badge .dots { justify-content: center; margin-bottom: 20px; }
.quote { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1.05; }
.about-copy .display { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 20px; }
.about-copy p { font-size: 1.1rem; margin-bottom: 14px; max-width: 40em; font-weight: 500; }
.numbers { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.num {
  background: var(--white); border: var(--bd); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 16px 22px; text-align: center; min-width: 110px;
}
.num b { font-family: "Fredoka", sans-serif; font-size: 2.4rem; display: block; line-height: 1; }
.num span { font-weight: 600; font-size: .9rem; }

/* ===== Contact ===== */
.contact { padding: 80px 0; }
.contact-box {
  background: var(--yellow); border: var(--bd); border-radius: 30px;
  box-shadow: var(--shadow-lg); padding: 56px 44px; text-align: center;
}
.contact-box .display { font-size: clamp(2rem, 5vw, 3.4rem); }
.contact-sub { font-size: 1.15rem; margin: 12px 0 34px; font-weight: 500; }
.contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ctc {
  background: var(--white); border: var(--bd); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 18px 20px; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ctc:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.ctc span { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .85rem; }
.ctc b { font-size: 1.02rem; word-break: break-word; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--paper); border-top: var(--bd); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand-light .brand-name { color: var(--paper); }
.footer-copy { font-weight: 500; opacity: .85; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-family: "Fredoka", sans-serif; font-weight: 500; }
.footer-links a:hover { color: var(--yellow); }

/* ===================================================================
   Legal / Privacy page
=================================================================== */
.legal-head { padding: 60px 0 34px; }
.legal-head .display { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.legal-head .updated {
  display: inline-block; margin-top: 18px;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: .9rem;
  background: var(--sky); border: var(--bd); border-radius: 999px;
  padding: 6px 16px; box-shadow: var(--shadow-sm); transform: rotate(-1.5deg);
}
.legal-intro { font-size: 1.15rem; font-weight: 500; margin-top: 22px; max-width: 46em; }

.legal-wrap { padding-bottom: 80px; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }

/* sticky table of contents */
.toc {
  position: sticky; top: 90px;
  background: var(--white); border: var(--bd); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 22px 20px;
}
.toc h4 { font-family: "Fredoka", sans-serif; font-size: 1rem; margin-bottom: 12px; text-transform: uppercase; }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 9px; }
.toc li { counter-increment: toc; font-size: .92rem; font-weight: 500; line-height: 1.3; }
.toc li::before { content: counter(toc) ". "; font-family: "Fredoka", sans-serif; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* legal article */
.legal-card {
  background: var(--white); border: var(--bd); border-radius: 24px;
  box-shadow: var(--shadow); padding: 40px 42px;
}
.prose section { scroll-margin-top: 90px; padding: 26px 0; border-bottom: 2px dashed rgba(23,21,20,.18); }
.prose section:first-child { padding-top: 0; }
.prose section:last-child { border-bottom: 0; padding-bottom: 0; }
.prose h2 {
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.5rem;
  text-transform: uppercase; margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline;
}
.prose h2 .n {
  font-size: 1rem; background: var(--yellow); border: 2px solid var(--ink);
  border-radius: 8px; padding: 1px 9px; flex: none;
}
.prose h3 { font-family: "Fredoka", sans-serif; font-size: 1.08rem; margin: 18px 0 8px; }
.prose p { margin-bottom: 12px; font-weight: 500; }
.prose ul { margin: 8px 0 14px 4px; padding-left: 22px; }
.prose li { margin-bottom: 7px; font-weight: 500; }
.prose a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.prose strong { background: var(--yellow); padding: 0 5px; border-radius: 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* callout note */
.note {
  background: var(--paper-2); border: var(--bd); border-left-width: 8px;
  border-radius: 14px; padding: 16px 20px; margin: 18px 0; font-weight: 500;
}
.note b { font-family: "Fredoka", sans-serif; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .legal-card { padding: 30px 22px; }
}

/* ===================================================================
   Contact page
=================================================================== */
.contact-head { padding: 60px 0 10px; text-align: center; }
.contact-head .display { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.contact-head .lead { margin: 20px auto 0; text-align: center; }

.contact-layout {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px;
  align-items: start; padding: 40px 0 80px;
}

/* form */
.form-card {
  background: var(--white); border: var(--bd); border-radius: 26px;
  box-shadow: var(--shadow-lg); padding: 34px 32px;
}
.form-card h2 { font-family: "Fredoka", sans-serif; font-size: 1.5rem; text-transform: uppercase; margin-bottom: 4px; }
.form-card .hint { font-weight: 500; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: "DM Sans", sans-serif; font-size: 1rem; font-weight: 500;
  padding: 13px 15px; border: var(--bd); border-radius: 14px;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
  outline: none; background: var(--white);
  transform: translate(-2px,-2px); box-shadow: var(--shadow);
}
.form-card .btn { width: 100%; margin-top: 4px; }
.form-note { margin-top: 14px; font-size: .88rem; font-weight: 500; opacity: .75; text-align: center; }

/* info column */
.info-stack { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  border: var(--bd); border-radius: 22px; box-shadow: var(--shadow); padding: 26px 24px;
}
.info-card.tint-1 { background: var(--teal); transform: rotate(-1.4deg); }
.info-card.tint-2 { background: var(--yellow); transform: rotate(1.2deg); }
.info-card h3 { font-family: "Fredoka", sans-serif; font-size: 1.2rem; text-transform: uppercase; margin-bottom: 14px; }
.info-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; }
.info-row:last-child { margin-bottom: 0; }
.info-row a { text-decoration: underline; text-decoration-thickness: 2px; word-break: break-word; }
.info-row .ic {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--ink); border-radius: 10px; font-size: 1rem;
}
.info-card p { font-weight: 500; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.card.reveal { transform: translateY(26px); }
.card.reveal.in { transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 340px; margin-top: 10px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 16px; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--paper);
    border-bottom: var(--bd); padding: 22px 24px;
  }
  .hero { padding: 46px 0 30px; }
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(odd), .card:nth-child(even) { transform: rotate(0); }
  .contact-box { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker, .spark, .marquee-track { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
