html,body { margin:0; }
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap");
#oops-game-site {
  --ink:#233d36;
  --body:#4b5546;
  --paper:#fff9eb;
  --cream:#fff2d6;
  --green:#24534a;
  --orange:#af4227;
  --yellow:#ffcc5e;
  --line:#ddc8a4;
  --garage:url("./assets/garage-background.webp");
  background:var(--paper);
  color:var(--ink);
  font:600 16px/1.5 "Nunito","Trebuchet MS",system-ui,sans-serif;
  min-width:0;
}
#oops-game-site *,#oops-game-site *::before,#oops-game-site *::after { box-sizing:border-box; }
#oops-game-site [hidden] { display:none !important; }
#oops-game-site h1,#oops-game-site h2,#oops-game-site h3,#oops-game-site p,#oops-game-site figure { margin:0; }
#oops-game-site button,#oops-game-site select { font:inherit; }
#oops-game-site img { display:block; max-width:100%; }
#oops-game-site .section-inner { max-width:1160px; margin-inline:auto; padding-inline:clamp(16px,5vw,54px); }
#oops-game-site .site-top { background:#fff8e6; border-bottom:1px solid var(--line); }
#oops-game-site .site-header { display:flex; flex-wrap:wrap; align-items:center; gap:0 20px; min-height:76px; }
#oops-game-site .brand { display:flex; align-items:center; gap:.6rem; color:var(--ink); text-decoration:none; font-size:clamp(1rem,2.3vw,1.3rem); font-weight:900; white-space:nowrap; }
#oops-game-site .brand img { width:42px; height:42px; border-radius:12px; }
#oops-game-site .site-nav { display:flex; align-items:center; flex-wrap:wrap; gap:0 clamp(12px,2.2vw,24px); margin-inline-start:auto; }
#oops-game-site .site-nav a { display:inline-flex; align-items:center; min-height:44px; color:var(--ink); text-decoration:none; font-weight:800; font-size:.9rem; }
#oops-game-site .site-nav a:hover { text-decoration:underline; text-underline-offset:.25em; }
#oops-game-site .locale { min-height:44px; max-width:130px; padding:.3rem .5rem; border:1px solid var(--line); border-radius:8px; background:#fffdf6; color:var(--ink); }
#oops-game-site .hero { border-bottom:1px solid #e6c68e; background:radial-gradient(circle,#bb8a4a27 1px,transparent 1.5px) 0 0/19px 19px,linear-gradient(125deg,#fff1ce,#ffe4a8); }
#oops-game-site .hero-inner { display:grid; grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr); align-items:center; gap:clamp(20px,4vw,48px); padding-block:clamp(28px,5.6vw,65px); }
#oops-game-site .hero h1 { font-size:clamp(2.4rem,6.2vw,4.55rem); font-weight:900; line-height:.99; letter-spacing:-.055em; overflow-wrap:break-word; }
#oops-game-site .hero h1 span { display:block; color:var(--orange); }
#oops-game-site .hero p { color:var(--body); max-width:34ch; font-size:clamp(.99rem,1.9vw,1.19rem); margin-block:1.05rem 1.25rem; }
#oops-game-site .action { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:48px; max-width:100%; padding:.55rem .95rem; border:1px solid #ac6530; border-radius:11px; color:#332513; background:var(--yellow); box-shadow:0 3px 0 #aa6b32; text-decoration:none; font-weight:900; }
#oops-game-site .action:hover { background:#ffd779; }
#oops-game-site .action.secondary { color:var(--green); background:#fff9e8; border-color:#c4a774; box-shadow:none; }
#oops-game-site .actions { display:flex; flex-wrap:wrap; gap:.6rem .8rem; }
#oops-game-site .hero-art {
  position:relative; isolation:isolate; overflow:hidden; min-height:325px; aspect-ratio:1.12;
  border:2px solid #a3693e; border-radius:24px;
  background:linear-gradient(0deg,#48281971,#ffd68125 72%), var(--garage) center 9%/cover;
  box-shadow:0 7px 0 #bd854450;
}
#oops-game-site .hero-art .vasya-hero { position:absolute; width:78%; height:96%; bottom:-3%; right:-1%; object-fit:contain; object-position:bottom right; filter:drop-shadow(0 6px 12px #29120f75); }
#oops-game-site .hero-art .rail-hero { position:absolute; width:41%; height:42%; object-fit:contain; top:38%; left:1%; transform:rotate(22deg); filter:drop-shadow(0 5px 4px #4c231e69); }
#oops-game-site .hero-art .spring-hero { position:absolute; width:27%; height:31%; object-fit:contain; bottom:3%; left:6%; filter:drop-shadow(0 4px 5px #4c231e80); }
#oops-game-site .hero-art .marble { position:absolute; left:22%; top:46%; width:clamp(15px,3vw,29px); aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 34% 30%,#fff5b4 0%,#fed15c 25%,#d8822a 63%,#80431e 100%); box-shadow:0 4px 6px #66371780; }
#oops-game-site .section { padding-block:clamp(35px,6vw,68px); }
#oops-game-site .section h2 { font-size:clamp(1.95rem,4.4vw,3.05rem); line-height:1.04; letter-spacing:-.038em; font-weight:900; margin-bottom:clamp(16px,2.8vw,26px); }
#oops-game-site .play-area { background:#f9f4e3; }
#oops-game-site .play-layout { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(14px,3vw,30px); align-items:stretch; }
#oops-game-site .game-menu { display:flex; flex-direction:column; gap:14px; padding:clamp(15px,2.7vw,28px); background:#edf2dc; border:1px solid #c8d3b5; border-radius:19px; }
#oops-game-site .mode-picker { display:flex; flex-wrap:wrap; gap:.45rem; }
#oops-game-site .mode-picker button,#oops-game-site .level-picker button { min-height:44px; color:var(--ink); border:1px solid #b1c2a5; background:#fffefa; text-align:start; font-weight:900; }
#oops-game-site .mode-picker button { min-width:93px; padding:.38rem .66rem; border-radius:9px; }
#oops-game-site .mode-picker button[aria-pressed="true"] { color:#fff9e7; background:var(--green); border-color:var(--green); }
#oops-game-site .level-picker { display:grid; gap:.42rem; }
#oops-game-site .level-picker button { display:flex; align-items:center; width:100%; gap:.6rem; padding:.5rem .65rem; border-radius:10px; }
#oops-game-site .level-picker button[aria-pressed="true"] { background:#ffe3a2; border-color:#b58648; }
#oops-game-site .level-picker img { width:35px; height:35px; object-fit:contain; flex:none; }
#oops-game-site .game-menu p { color:#405446; font-size:.95rem; }
#oops-game-site .test-tip { border-top:1px solid #bfceb1; margin-top:auto; padding-top:.9rem; }
#oops-game-site .test-tip strong { display:block; color:#28584d; margin-bottom:.2rem; }
#oops-game-site .board-stage {
  display:grid; justify-items:center; align-items:center; min-width:0; padding:clamp(12px,2.3vw,23px);
  border-radius:20px; border:1px solid #5b7f6c;
  background:radial-gradient(circle,#faeabc26 1px,transparent 1.4px) 0 0/17px 17px,linear-gradient(135deg,#397569,#244d46);
}
#oops-game-site .board-stage[data-map="blueprint"] {
  border-color:#497293;
  background:linear-gradient(#c0e0ff16 1px,transparent 1px) 0 0/16px 16px,linear-gradient(90deg,#c0e0ff16 1px,transparent 1px) 0 0/16px 16px,linear-gradient(145deg,#305e83,#183a52);
}
#oops-game-site .parts-area { border-block:1px solid #e5d0ac; background:#fff0d3; }
#oops-game-site .parts-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(10px,2vw,20px); }
#oops-game-site .part { padding:.65rem .8rem .9rem; border:1px solid #d6bd93; border-radius:15px; background:#fffaf0; min-width:0; }
#oops-game-site .part:nth-child(3n+2) { background:#fcf8df; }
#oops-game-site .part:nth-child(3n) { background:#f5f8e9; border-color:#cbcfab; }
#oops-game-site .part img { width:100%; height:clamp(72px,10vw,112px); object-fit:contain; margin-block:0 .4rem; }
#oops-game-site .part h3 { font-weight:900; font-size:clamp(1rem,2vw,1.2rem); line-height:1.16; overflow-wrap:break-word; margin-bottom:.34rem; }
#oops-game-site .part p { color:var(--body); font-size:.92rem; line-height:1.4; }
#oops-game-site .people-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(11px,2.4vw,22px); }
#oops-game-site .character { display:grid; align-items:center; grid-template-columns:minmax(105px,.9fr) minmax(0,1.1fr); min-height:230px; padding:clamp(12px,2vw,21px); gap:.6rem; background:#ffe5a9; border:1px solid #d6ac6f; border-radius:20px; }
#oops-game-site .character.musya { background:#dcece0; border-color:#b2cdba; }
#oops-game-site .character img { width:100%; height:clamp(125px,18vw,220px); object-fit:contain; }
#oops-game-site .character h3 { font-size:clamp(1.36rem,3vw,2.25rem); font-weight:900; line-height:1.05; margin-bottom:.55rem; }
#oops-game-site .character p { color:#384b3c; line-height:1.42; font-size:.96rem; }
#oops-game-site .contact-area { border-top:1px solid #d0d5ae; background:#e9efd9; }
#oops-game-site .contact-card { display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); overflow:hidden; border:1px solid #9db096; border-radius:22px; background:#f9f5da; }
#oops-game-site .contact-art { min-height:260px; background:#573e31 url("./assets/homa-contact.webp") center 48%/cover; }
#oops-game-site .contact-copy { padding:clamp(18px,4vw,43px); align-self:center; min-width:0; }
#oops-game-site .contact-copy h2 { margin-bottom:.65rem; }
#oops-game-site .contact-copy p { margin-bottom:.9rem; color:var(--body); }
#oops-game-site .contact-copy .actions { margin-bottom:.7rem; }
#oops-game-site .contact-copy .text-link,#oops-game-site .site-footer a { display:inline-flex; align-items:center; min-height:44px; color:var(--green); text-underline-offset:.25em; overflow-wrap:anywhere; }
#oops-game-site .site-footer { background:#ffedc8; border-top:1px solid #e2c697; }
#oops-game-site .footer-inner { min-height:59px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 1rem; color:#5d5c44; }
@media (max-width:760px) {
  #oops-game-site .site-header { gap:0 12px; padding-block:.45rem .15rem; }
  #oops-game-site .site-nav { order:3; width:100%; margin-inline-start:0; }
  #oops-game-site .locale { margin-inline-start:auto; }
  #oops-game-site .hero-art { min-height:260px; }
  #oops-game-site .character { grid-template-columns:1fr; min-height:0; align-content:start; }
}
@media (max-width:575px) {
  #oops-game-site .hero-inner,#oops-game-site .play-layout,#oops-game-site .contact-card { grid-template-columns:minmax(0,1fr); }
  #oops-game-site .hero-art { aspect-ratio:1.28; min-height:215px; }
  #oops-game-site .hero h1 { letter-spacing:-.038em; }
  #oops-game-site .game-menu { gap:10px; }
  #oops-game-site .level-picker { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #oops-game-site .level-picker img { width:27px; height:27px; }
  #oops-game-site .level-picker button { font-size:.87rem; line-height:1.15; gap:.35rem; padding:.45rem; }
  #oops-game-site .parts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #oops-game-site .contact-art { min-height:255px; background-position:center 47%; }
}
@media (max-width:365px) {
  #oops-game-site .brand img { width:35px; height:35px; }
  #oops-game-site .site-nav { gap:0 12px; }
  #oops-game-site .site-nav a { font-size:.83rem; }
  #oops-game-site .character { padding:.65rem; }
  #oops-game-site .character img { height:108px; }
  #oops-game-site .character p { font-size:.87rem; }
}
@media (max-width:340px) {
  #oops-game-site .level-picker { grid-template-columns:1fr; }
  #oops-game-site .parts-grid { grid-template-columns:1fr; }
  #oops-game-site .part { display:grid; grid-template-columns:65px minmax(0,1fr); align-items:center; column-gap:.65rem; }
  #oops-game-site .part img { grid-row:span 2; height:65px; margin:0; }
  #oops-game-site .contact-copy h2 { font-size:1.6rem; }
}

#oops-game-site .board-stage { min-height:420px; padding:0; overflow:hidden; }
#oops-game-site .board-stage iframe { grid-area:1/1; display:block; width:min(100%,480px); min-width:0; aspect-ratio:480/850; border:0; }
#oops-game-site .game-launch { grid-area:1/1; z-index:1; display:grid; justify-items:center; gap:1rem; padding:1.1rem; border-radius:12px; background:#244d46; text-align:center; color:#fff9eb; }
#oops-game-site .catalog-filters { display:flex; flex-wrap:wrap; gap:.45rem; margin-bottom:1.15rem; }
#oops-game-site .catalog-filters button { min-height:44px; padding:.38rem .72rem; color:var(--ink); background:#fffefa; border:1px solid #c9b187; border-radius:8px; font-weight:800; }
#oops-game-site .catalog-filters button[aria-pressed="true"] { color:#fff9e7; background:var(--green); border-color:var(--green); }
#oops-game-site .part .variants { margin-top:.4rem; font-size:.84rem; }
#oops-game-site .download-area { background:#fff1cf; border-top:1px solid var(--line); }
#oops-game-site .download-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(12px,2.4vw,25px); }
#oops-game-site .download-grid article { min-width:0; padding:clamp(14px,3vw,26px); background:#fffaf0; border:1px solid var(--line); border-radius:15px; }
#oops-game-site .download-grid h3 { font-weight:900; margin-bottom:.4rem; }
#oops-game-site .download-grid p { margin-bottom:.85rem; overflow-wrap:anywhere; }
@media (max-width:575px) {
  #oops-game-site .download-grid { grid-template-columns:1fr; }
  #oops-game-site .board-stage { min-height:320px; }
}
