/* Mispax Raksan LLC */
:root {
  --ink: #16181d;
  --soft: #545a66;
  --line: #dfe2e7;
  --paper: #ffffff;
  --tint: #f4f5f7;
  --teal: #0f766e;
  --teal-dark: #0b5952;
  --amber: #d97706;
  --max: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16px; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.mark img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; list-style: none; }
.nav a { color: var(--soft); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 4px; padding: 6px 10px; font: inherit; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 4px; border: 1px solid var(--teal); background: var(--teal); color: #fff; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-line { background: transparent; color: var(--teal); }
.btn-line:hover { background: var(--tint); color: var(--teal-dark); }

/* Home */
.lede { padding: 52px 0 36px; }
.lede h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.2; max-width: 760px; margin-bottom: 14px; }
.lede p { color: var(--soft); max-width: 680px; font-size: 1.06rem; }
.lineup { padding: 8px 0 56px; }
.lineup h2, .block h2 { font-size: 1.35rem; margin-bottom: 18px; }
.game-list { border-top: 1px solid var(--line); }
.game-item { display: grid; grid-template-columns: 260px 1fr auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.game-item img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.game-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.game-item h3 a { color: var(--ink); text-decoration: none; }
.game-item p { color: var(--soft); max-width: 560px; }
.game-item .facts { font-size: .88rem; color: var(--soft); margin-top: 8px; }
.facts b { color: var(--ink); font-weight: 600; }
.block { padding: 48px 0; border-top: 1px solid var(--line); }
.block-tint { background: var(--tint); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two p { color: var(--soft); margin-bottom: 12px; }
.notes { list-style: none; }
.notes li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.notes li:first-child { padding-top: 0; }
.notes li b { color: var(--ink); display: block; }
.facts-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.facts-table th, .facts-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.facts-table th { width: 34%; color: var(--soft); font-weight: 500; }
.facts-table td { overflow-wrap: anywhere; }

/* Inner pages */
.page-head { padding: 40px 0 22px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
.page-head p { color: var(--soft); }
.doc { max-width: 760px; padding: 32px 0 64px; }
.doc h2 { font-size: 1.15rem; margin: 30px 0 8px; }
.doc h3 { font-size: 1rem; margin: 16px 0 6px; }
.doc p, .doc li { color: #2e333c; margin-bottom: 10px; }
.doc ul { padding-left: 22px; }
.entity { border-left: 3px solid var(--teal); background: var(--tint); padding: 14px 18px; margin: 14px 0 18px; }
.entity p { margin-bottom: 2px; overflow-wrap: anywhere; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; padding: 32px 0 64px; }
.contact h2 { font-size: 1.15rem; margin-bottom: 12px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid #c9ced6; border-radius: 4px; font: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.hint { font-size: .88rem; color: var(--soft); margin-top: 10px; }

/* Game pages */
.play { padding: 28px 0 56px; }
.play-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.play-head h1 { font-size: 1.7rem; }
.play-grid { display: grid; grid-template-columns: 1fr 290px; gap: 28px; align-items: start; }
.play-grid > * { min-width: 0; }
.stage { border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.hud { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 18px; }
.hud div { padding: 6px 16px; text-align: center; border-right: 1px solid var(--line); min-width: 84px; }
.hud div:last-child { border-right: 0; }
.hud small { display: block; font-size: .72rem; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.hud b { font-variant-numeric: tabular-nums; font-size: 1.2rem; }
.msg { min-height: 1.6em; margin-top: 14px; text-align: center; color: var(--soft); }
.side section { border: 1px solid var(--line); border-radius: 6px; padding: 18px; margin-bottom: 16px; }
.side h2 { font-size: 1rem; margin-bottom: 8px; }
.side ul { padding-left: 18px; color: var(--soft); font-size: .95rem; }
.more { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.more img { width: 64px; height: 36px; border: 1px solid var(--line); border-radius: 3px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }

/* Tile Slide */
.slide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; max-width: 380px; aspect-ratio: 1; background: #e7e9ed; padding: 6px; border-radius: 6px; }
.slot { border: 0; border-radius: 4px; background: #fff; box-shadow: inset 0 -3px 0 #d3d7de; font: inherit; font-weight: 700; font-size: clamp(1.1rem, 5vw, 1.7rem); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot.home { color: var(--teal); }
.slot.empty { background: transparent; box-shadow: none; cursor: default; }

/* Echo Pads */
.pads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 340px; aspect-ratio: 1; }
.pads button { border: 0; border-radius: 10px; cursor: pointer; opacity: .55; transition: opacity .08s, transform .08s; font: inherit; color: #fff; font-weight: 700; font-size: 1.1rem; }
.pads button:disabled { cursor: default; }
.pads button.lit { opacity: 1; transform: scale(.97); }
.pad-0 { background: #0f766e; } .pad-1 { background: #d97706; } .pad-2 { background: #2563eb; } .pad-3 { background: #be123c; }

/* Mole Rush */
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 360px; touch-action: manipulation; user-select: none; }
.hole { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 62%, #3b2f2a 0 38%, #8a6f5b 39% 52%, #e9e3db 53%); overflow: hidden; cursor: pointer; border: 0; }
.hole::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -60%; height: 56%; border-radius: 50% 50% 40% 40%; background: #8b5e3c; box-shadow: inset 0 6px 0 #a3714b; transition: bottom .12s ease-out; }
.hole.up::after { bottom: 26%; }
.hole.hit::after { background: #d97706; bottom: 26%; }
.hole:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--tint); padding: 36px 0 0; margin-top: 24px; font-size: .94rem; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; padding-bottom: 28px; }
.foot h2 { font-size: .95rem; margin-bottom: 10px; }
.foot p { color: var(--soft); margin-bottom: 4px; overflow-wrap: anywhere; }
.foot ul { list-style: none; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--ink); }
.legal-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.legal-links a { font-weight: 600; color: var(--teal); }
.copy { border-top: 1px solid var(--line); padding: 16px 0; color: var(--soft); font-size: .88rem; }

@media (max-width: 900px) {
  .game-item { grid-template-columns: 200px 1fr; }
  .game-item > .btn { grid-column: 2; justify-self: start; }
  .two, .contact, .play-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 12px 20px; }
  .game-item { grid-template-columns: 1fr; gap: 12px; }
  .game-item > .btn { grid-column: auto; }
  .foot-cols { grid-template-columns: 1fr; }
  .stage { padding: 14px; }
}
.hud { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; max-width: 380px; }
.hud div { min-width: 0; padding: 6px 8px; }
.game-item img, .more img { height: auto; }
