/* Lapral Technologies — WEB2 "Toy Box Playroom" look, shared by every page.
   Layout: sky-blue ground, white rounded content sheets, chunky Ludo-colour buttons with a pressed edge. */
:root {
  --sky: #eaf3ff; --sheet: #ffffff; --ink: #1c2333; --muted: #3f4860; --soft: #5a6378; --line: #dfe6f2;
  --red: #e5484d; --red-d: #b8343a; --red-t: #ffe1e2;
  --green: #2fa05a; --green-d: #1f7a42; --green-t: #e4f6ea;
  --blue: #2f6fe4; --blue-d: #1d4fb0; --blue-t: #e2ebfd;
  --yellow: #ffd60a; --yellow-d: #c9a400; --yellow-t: #fff4cc;
  --wood: #d9ab78; --wood-d: #a87a4c;
  --display: 'Fredoka', 'Trebuchet MS', sans-serif; --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sky); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-head { padding-block: 18px; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #0b1026; }
.brand:hover { color: #0b1026; }
.brand .mark { width: 40px; height: 40px; flex: none; border-radius: 10px; box-shadow: 0 4px 10px rgba(11,16,38,.18); }
.brand .wm { width: 128px; height: auto; flex: none; display: block; }
.brand .wmbox { display: flex; flex-direction: column; gap: 3px; width: 136px; }
.brand .wmbox .wm { width: 100%; }
.brand .wmt { font: 700 10px/1 'Chakra Petch', 'Trebuchet MS', sans-serif; color: #3f4860; display: flex; justify-content: space-between; padding: 0 2px 0 3px; }
.brand .wmt i { font-style: normal; }
.site-foot .brand { color: #ffffff; }
.site-foot .brand .mark { width: 44px; height: 44px; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.site-foot .brand .wm-full { width: 160px; }
.nav { display: flex; gap: 4px; flex: 1; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; padding: 10px 16px; border-radius: 99px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.nav a[aria-current="page"] { background: #fff; box-shadow: 0 3px 0 var(--line); }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 18px; text-decoration: none; padding: 14px 26px; border-radius: 99px; border: 0; cursor: pointer; transition: transform .12s, box-shadow .12s; min-height: 48px; }
.btn:active { transform: translateY(4px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 0 var(--blue-d); } .btn-blue:hover { color: #fff; }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 6px 0 #c9d6ea; } .btn-white:hover { color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 var(--yellow-d); } .btn-yellow:hover { color: var(--ink); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-d); } .btn-red:hover { color: #fff; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-d); } .btn-green:hover { color: #fff; }
.btn-sm { font-size: 16px; padding: 10px 20px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.chip { display: inline-block; font-weight: 800; font-size: 13px; border-radius: 99px; padding: 4px 12px; }
.chip-yellow { background: var(--yellow); color: var(--ink); }
.chip-red { background: var(--red); color: #fff; }
.chip-green { background: var(--green); color: #fff; }
.chip-white { background: #fff; color: var(--ink); }
.eyebrow { display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: .12em; color: var(--blue); background: #fff; border-radius: 99px; padding: 8px 16px; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding-block: 56px 110px; overflow: hidden; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero h1 { font-size: clamp(42px, 7.5vw, 104px); font-weight: 700; line-height: 1; max-width: 13ch; }
.hero p { max-width: 46ch; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.hero .btn-row { justify-content: center; }
.deco { position: absolute; pointer-events: none; }
.page-hero { padding-block: 40px 70px; text-align: center; }
.page-hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); max-width: 16ch; }
.page-hero p { max-width: 52ch; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }

/* ---------- white sheet sections ---------- */
.sheet { background: var(--sheet); border-radius: 48px 48px 0 0; }
.sheet + .sheet, .sheet.flat { border-radius: 0; }
.section { padding-block: 80px; }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 56px); }
.section-head p { color: var(--muted); font-size: 19px; max-width: 52ch; }

/* ---------- phones ---------- */
.phone { flex: none; width: 210px; max-width: 100%; aspect-ratio: 9 / 19.5; border-radius: 36px; background: var(--ink); padding: 9px; box-shadow: 0 20px 30px rgba(28,35,51,.22); text-decoration: none; display: block; }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; display: block; background: #0b1026; }
.phone.lg { width: 240px; border-radius: 40px; padding: 10px; } .phone.lg img, .phone.lg video { border-radius: 31px; }
.tilt-l { transform: rotate(-3deg); } .tilt-r { transform: rotate(3deg); }
.phone-empty { flex: none; width: 210px; max-width: 100%; aspect-ratio: 9 / 19.5; border-radius: 36px; border: 4px dashed #c3cde0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--soft); text-align: center; padding: 16px; }
.phone-empty b { font-family: var(--display); font-size: 20px; color: var(--ink); }

/* ---------- toy shelf ---------- */
.shelf-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 40px; padding: 0 20px; }
.shelf-plank { height: 26px; margin-top: -2px; border-radius: 14px; background: linear-gradient(#e2b98a, #c99764); box-shadow: 0 14px 0 var(--wood-d), 0 26px 30px rgba(28,35,51,.18); }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 52px; }
.tcard { border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tcard h3 { font-size: 28px; }
.tcard p { color: var(--muted); }
.tcard .btn { align-self: flex-start; margin-top: auto; }
.t-yellow { background: var(--yellow-t); } .t-red { background: var(--red-t); } .t-green { background: var(--green-t); } .t-blue { background: var(--blue-t); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }

/* ---------- game detail (games page) ---------- */
.game { border-radius: 40px; padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.game + .game { margin-top: 32px; }
.game-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.game-info h2 { font-size: clamp(34px, 4.5vw, 54px); }
.game-info > p { font-size: 19px; color: var(--muted); max-width: 46ch; }
.game-shots { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; gap: 16px; }
.game-shots .phone { width: 31%; max-width: 190px; border-radius: 30px; padding: 7px; }
.game-shots .phone img, .game-shots .phone video { border-radius: 24px; }
.game-shots .phone:nth-child(2) { width: 36%; max-width: 220px; }
.feat { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feat li { background: #fff; border-radius: 99px; padding: 8px 14px; font-weight: 700; font-size: 15px; }
.app-icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 6px 0 rgba(0,0,0,.12); }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tile { border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.tile b { font-family: var(--display); font-size: 24px; line-height: 1.15; }
.tile span, .tile p { color: var(--muted); }
.tile .ic { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.tile .ic svg { width: 28px; height: 28px; }
.tile-btn { text-decoration: none; color: var(--ink); transition: transform .15s; }
.tile-btn:hover { color: var(--ink); transform: translateY(-3px); }
.tile-btn .go { margin-top: auto; font-weight: 800; color: var(--blue); }

/* ---------- split rows (about) ---------- */
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.big-quote { font-family: var(--display); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.mv .tile b { font-size: 28px; }

/* ---------- contact band ---------- */
.contact { padding-block: 90px; }
.contact .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; }
.contact .txt { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact h2 { font-size: clamp(32px, 4.5vw, 56px); }
.contact p { font-size: 19px; color: var(--muted); }
.mail-btn { font-size: clamp(18px, 2.4vw, 24px); padding: 18px 28px; overflow-wrap: anywhere; text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--sky); border-radius: 22px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 20px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }
.copybox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border-radius: 99px; padding: 6px 6px 6px 20px; box-shadow: 0 4px 0 var(--line); max-width: 100%; }
.copybox code { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.legal h2 { font-size: 28px; margin-top: 28px; }
.legal h3 { font-size: 21px; margin-top: 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal .note { background: var(--blue-t); border-radius: 20px; padding: 18px 22px; color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-family: var(--display); font-weight: 600; color: var(--ink); }
.table-box { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c9cfdf; }
.site-foot .wrap { padding-block: 40px 44px; display: flex; flex-wrap: wrap; gap: 24px 40px; }
.foot-about { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: flex-start; font-size: 15px; }
.foot-links a { color: #fff; }
.foot-copy { flex-basis: 100%; font-size: 14px; color: #8f97b2; border-top: 1px solid #2c3550; padding-top: 18px; }

/* ---------- motion ---------- */
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }
.bob { animation: bob 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .bob { animation: none; } html { scroll-behavior: auto; } .btn, .tile-btn { transition: none; } }

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .section { padding-block: 64px; }
  .shelf-row { gap: 24px; }
  .phone { width: 180px; } .phone.lg { width: 200px; } .phone-empty { width: 180px; }
}
/* ---------- phone ---------- */
@media (max-width: 640px) {
  .site-head .wrap { gap: 10px; }
  .brand .wmbox { width: 118px; } .brand .wmt { font-size: 9px; }
  .nav { flex-basis: 100%; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 9px 14px; font-size: 15px; }
  .hero { padding-block: 64px 96px; }
  .deco { width: 40px; height: 40px; }
  .deco.d1 { left: 12px !important; top: 8px !important; }
  .deco.d2 { right: 14px !important; top: 14px !important; width: 32px; height: 32px; }
  .deco.d3 { left: 18px !important; bottom: 26px !important; width: 30px; height: 30px; }
  .deco.d4 { right: 22px !important; bottom: 20px !important; width: 36px; height: 36px; }
  .sheet { border-radius: 32px 32px 0 0; }
  .section { padding-block: 52px; }
  .shelf-row { gap: 14px; padding: 0 4px; }
  .shelf-row .phone, .shelf-row .phone-empty { width: calc(50% - 10px); border-radius: 26px; padding: 6px; }
  .shelf-row .phone img, .shelf-row .phone video { border-radius: 21px; }
  .shelf-row .phone-empty { order: 3; width: 100%; aspect-ratio: auto; padding: 20px; border-radius: 26px; }
  .game { border-radius: 28px; gap: 28px; }
  .game-shots { gap: 8px; }
  .game-shots .phone { border-radius: 20px; padding: 5px; } .game-shots .phone img, .game-shots .phone video { border-radius: 16px; }
  .btn-row .btn { flex: 1 1 auto; }
  .mail-btn { width: 100%; }
}

/* ---------- About page (AB1 Dice Buddies) ---------- */
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes squash { 0%,100% { transform: translateY(0) scale(1,1); } 45%,55% { transform: translateY(-22px) scale(.96,1.04); } 90% { transform: translateY(0) scale(1.08,.92); } }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes wiggle { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes peek { 0%,100% { transform: translateY(18px); } 40%,70% { transform: translateY(0); } }
@keyframes hop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.about-fun > section:first-child > div:nth-child(2) > svg, .about-fun > section:first-child > div:nth-child(2) > span > svg { max-width: 28vw; height: auto; }
@media (max-width: 640px) {
  .about-fun > section:first-child > div:nth-child(2) { height: 260px !important; }
  .about-fun > section:first-child > div:nth-child(2) > div { left: 0 !important; font-size: 16px !important; }
}
@keyframes roll{0%,70%,100%{transform:rotate(0)}80%{transform:rotate(100deg)}90%{transform:rotate(190deg)}}
@media (prefers-reduced-motion: reduce) { .about-fun * { animation: none !important; } }

/* audit fixes 2026-10-25 */
.btn-red, .chip-red { background: #d63a40; }
.btn-green, .chip-green { background: #238048; }
@media (max-width: 360px) {
  .nav a { padding: 9px 10px; font-size: 14px; }
  .about-fun [style*="minmax(300px"] { grid-template-columns: 1fr !important; }
  .about-fun a[href^="mailto"] { font-size: 17px !important; padding-inline: 18px !important; max-width: 100%; overflow-wrap: anywhere; }
}
