:root {
  --bg: #090909;
  --panel: #111111;
  --panel-2: #171717;
  --line: #303030;
  --text: #f5f5f5;
  --muted: #a0a0a0;
  --soft: #d8d8d8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  background: rgba(9,9,9,.94);
  backdrop-filter: blur(12px);
  z-index: 50;
}
.brand { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.brand-mark { color: var(--muted); font-size: 10px; letter-spacing: .25em; font-weight: 800; }
.brand-name { font-size: 20px; font-weight: 900; letter-spacing: .06em; }

main { width: min(1220px, calc(100% - 36px)); margin: 0 auto; }
.hero { padding: clamp(56px, 10vw, 124px) 0 62px; border-bottom: 1px solid var(--line); }
.eyebrow, .toolbar-title { margin: 0 0 16px; font-size: 11px; font-weight: 900; letter-spacing: .22em; color: var(--muted); }
h1 { margin: 0; font-size: clamp(52px, 9vw, 124px); line-height: .82; letter-spacing: -.07em; font-weight: 900; }
h1 span { -webkit-text-stroke: 1px var(--soft); color: transparent; }
.lead { margin: 32px 0 0; color: var(--soft); font-size: clamp(16px, 2vw, 22px); }

.toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.toolbar-title { margin-bottom: 5px; }
.toolbar-copy { margin: 0; color: var(--muted); font-size: 13px; }
.primary-button, .ghost-button {
  border: 1px solid var(--text);
  color: var(--bg);
  background: var(--text);
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  transition: .16s ease;
}
.primary-button:hover { transform: translateY(-2px); }
.ghost-button { color: var(--text); background: transparent; border-color: var(--line); }
.ghost-button:hover { border-color: var(--text); }

.counter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 28px 0 68px; }
.counter-card { border: 1px solid var(--line); background: var(--panel); padding: 18px; min-width: 0; }
.card-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.counter-no { color: var(--muted); font-size: 11px; letter-spacing: .15em; font-weight: 800; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 22px; }
.icon-button:hover { color: var(--text); border-color: var(--text); }

.field-row { display: grid; grid-template-columns: 1.4fr .8fr; gap: 10px; }
.field-row label { display: flex; flex-direction: column; gap: 7px; }
.field-row label > span, .step-row > span { color: var(--muted); font-size: 10px; letter-spacing: .18em; font-weight: 800; }
input, select { width: 100%; border: 1px solid var(--line); background: #0c0c0c; color: var(--text); padding: 12px 13px; outline: none; }
input:focus, select:focus { border-color: var(--text); }

.visual-stage {
  height: 235px;
  border: 1px solid var(--line);
  background: #0b0b0b;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.count-line { display: flex; align-items: baseline; gap: 9px; margin: 4px 0 14px; }
.count-value { font-size: clamp(56px, 7vw, 84px); line-height: 1; font-weight: 900; letter-spacing: -.06em; }
.count-unit { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.step-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.segmented { display: flex; }
.step-option { background: transparent; color: var(--muted); border: 1px solid var(--line); border-right: 0; padding: 8px 10px; font-size: 11px; font-weight: 800; }
.step-option:last-child { border-right: 1px solid var(--line); }
.step-option.active { background: var(--text); color: var(--bg); }
.controls { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 14px; }
.count-button { height: 72px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 36px; font-weight: 300; }
.count-button.plus { background: var(--text); color: var(--bg); }
.count-button:active { transform: translateY(2px); }
.reset-button { width: 100%; border: 0; background: transparent; color: #777; padding: 13px 0 0; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.reset-button:hover { color: var(--text); }

.empty-state { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--muted); }
.empty-orbit { width: 130px; height: 130px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 58px; font-weight: 900; color: #343434; }
.empty-state p { font-size: 12px; letter-spacing: .18em; font-weight: 900; }

footer { margin: 0 clamp(18px,4vw,56px); padding: 28px 0 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #646464; font-size: 9px; letter-spacing: .12em; }

/* VISUAL THEMES */
.v-sushi { width: 90%; height: 80%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 5px; }
.sushi-piece { width: 34px; height: 23px; border-radius: 7px; background: #ededed; position: relative; box-shadow: inset 0 -7px 0 #bcbcbc; }
.sushi-piece::before { content: ""; position: absolute; left: 4px; right: 4px; top: -7px; height: 11px; border-radius: 50%; background: #777; }
.sushi-overflow { position: absolute; bottom: 8px; right: 10px; color: var(--muted); font-size: 11px; font-weight: 800; }

.v-pushup { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }
.body-head { width: 52px; height: 52px; border: 2px solid var(--soft); border-radius: 50%; position: absolute; top: 38px; }
.body-torso { width: var(--torso, 56px); height: 82px; border: 3px solid var(--soft); border-radius: 40% 40% 28% 28%; position: absolute; top: 92px; transition: width .25s ease, border-width .25s ease; }
.body-arm { width: var(--arm, 16px); height: 86px; border: 2px solid var(--soft); border-radius: 20px; position: absolute; top: 92px; transition: width .25s ease; }
.body-arm.left { transform: translateX(-48px) rotate(10deg); }
.body-arm.right { transform: translateX(48px) rotate(-10deg); }
.body-caption { position: absolute; bottom: 12px; font-size: 10px; color: var(--muted); letter-spacing: .15em; font-weight: 900; }

.v-drink { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }
.drink-face { width: 112px; height: 112px; border: 2px solid var(--soft); border-radius: 50%; position: relative; transform: rotate(var(--tilt,0deg)); transition: transform .2s ease; }
.drink-face::before, .drink-face::after { content:""; position:absolute; top:35px; width:11px; height:11px; background:var(--soft); border-radius:50%; }
.drink-face::before { left:28px; }
.drink-face::after { right:28px; }
.drink-mouth { position:absolute; left:36px; right:36px; bottom:27px; height:18px; border-bottom:3px solid var(--soft); border-radius:50%; transform: rotate(var(--mouth,0deg)); }
.drink-bubbles { position:absolute; inset:0; }
.drink-bubbles i { position:absolute; width:8px; height:8px; border:1px solid #777; border-radius:50%; }
.drink-bubbles i:nth-child(1){left:30%;top:20%}.drink-bubbles i:nth-child(2){left:68%;top:28%}.drink-bubbles i:nth-child(3){left:22%;top:70%}.drink-bubbles i:nth-child(4){left:76%;top:72%}
.drink-caption { position:absolute; bottom:12px; font-size:10px; color:var(--muted); letter-spacing:.15em; font-weight:900; }

.v-soccer { width: 100%; height: 100%; display:flex; flex-wrap:wrap; align-content:center; justify-content:center; gap:7px; padding:20px; }
.ball { width:30px; height:30px; border:2px solid var(--soft); border-radius:50%; position:relative; }
.ball::after { content:""; width:8px; height:8px; background:var(--soft); clip-path:polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); position:absolute; left:9px; top:8px; }

.v-plain { width: 160px; height: 160px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 64px; font-weight: 900; color: #444; }

@media (max-width: 760px) {
  .site-header { position: static; }
  .counter-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .primary-button { width: 100%; }
  .visual-stage { height: 220px; }
  .ghost-button { padding: 10px 12px; font-size: 10px; }
  footer { flex-direction: column; }
}
