:root { color-scheme: dark; }
body { min-height: 100svh; }
.cositas-shell { width: min(100%, 980px); min-height: 100svh; margin: auto; padding: max(18px, env(safe-area-inset-top)) clamp(20px, 5vw, 54px) max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.cositas-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.cositas-head img { width: 68px; height: auto; }
.cositas-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.cositas-back:hover, .cositas-back:focus-visible { color: var(--paper); }
.cositas-main { flex: 1; display: flex; flex-direction: column; padding-top: clamp(44px, 10vh, 110px); }
.cositas-kicker { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.cositas-title { margin: 0; font: 800 clamp(42px, 9vw, 92px)/.97 var(--font-display); letter-spacing: -.05em; text-transform: uppercase; }
.cositas-intro { margin: 20px 0 30px; max-width: 560px; color: var(--muted); font-size: clamp(16px, 3vw, 20px); line-height: 1.4; }
.cositas-list { border-top: 1px solid var(--line); margin-top: 44px; }
.cositas-item { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 14px; min-height: 112px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding 180ms ease, color 180ms ease; }
.cositas-item:hover, .cositas-item:focus-visible { padding-left: 12px; color: var(--orange); }
.cositas-index { align-self: start; padding-top: 5px; color: var(--muted); font-size: 12px; }
.cositas-item strong { display: block; font-size: clamp(23px, 5vw, 38px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.cositas-item small { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.3; }
.cositas-arrow { justify-self: end; font-size: var(--label-size); font-weight: 600; line-height: 1; letter-spacing: .12em; }
.tool-main { padding-top: clamp(30px, 6vh, 68px); }
.tool-title { font-size: clamp(38px, 8vw, 72px); }
.tool-note { margin: 12px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.tool-button { min-height: 48px; padding: 12px 20px; border: 1px solid var(--paper); border-radius: 0; background: var(--paper); color: var(--ink); font: 700 12px/1.2 var(--font-sans); letter-spacing: .12em; cursor: pointer; }
.tool-button:disabled { opacity: .45; cursor: not-allowed; }
.tool-button--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.tool-button:focus-visible, .step:focus-visible, .choice:focus-visible, .mode:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-status { min-height: 26px; margin: 18px 0; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.bpm-display { display: flex; align-items: baseline; gap: 14px; margin: auto 0 18px; }
.bpm-value { font: 800 clamp(110px, 32vw, 260px)/.8 var(--font-display); letter-spacing: -.09em; font-variant-numeric: tabular-nums; }
.bpm-unit { font-size: 16px; font-weight: 700; letter-spacing: .15em; }
.tap-zone { position: relative; isolation: isolate; width: 100%; min-height: clamp(200px, 34svh, 340px); margin: 16px 0 18px; overflow: hidden; border: 1px solid var(--paper); background: var(--paper); color: var(--ink); font: 800 clamp(35px, 10vw, 66px)/1 var(--font-display); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tap-label { position: relative; z-index: 2; }
.tap-pixels { --tap-x: 50%; --tap-y: 50%; position: absolute; z-index: 1; inset: -35%; opacity: 0; transform: scale(.25); transform-origin: var(--tap-x) var(--tap-y); background-image: linear-gradient(90deg, rgba(7, 7, 7, .82) 1px, transparent 1px), linear-gradient(rgba(7, 7, 7, .82) 1px, transparent 1px), radial-gradient(circle at var(--tap-x) var(--tap-y), #fff4dd 0 4%, var(--orange) 18%, rgba(255, 157, 0, .72) 38%, transparent 68%); background-size: 11px 11px, 11px 11px, 100% 100%; pointer-events: none; }
.payers-page { height: 100svh; height: 100dvh; overflow: hidden; overscroll-behavior: none; background: #11100f; }
.payers-page .cositas-shell { position: relative; width: 100%; max-width: none; height: 100svh; height: 100dvh; min-height: 100svh; min-height: 100dvh; margin: 0; padding: 0; }
.payers-page .cositas-head { position: fixed; z-index: 20; top: 0; left: 0; right: 0; min-height: 64px; padding: max(18px, env(safe-area-inset-top)) clamp(20px, 5vw, 54px) 0; pointer-events: none; }
.payers-page .cositas-head a { pointer-events: auto; }
.payers-main { position: relative; flex: 1; min-height: 0; padding: 0; }
.payers-intro { position: absolute; z-index: 3; top: clamp(86px, 12svh, 124px); left: clamp(20px, 5vw, 54px); right: clamp(20px, 5vw, 54px); pointer-events: none; }
.payers-intro .tool-note { max-width: 460px; margin: 10px 0 14px; }
.payers-page .tool-title { font-size: clamp(40px, 11vw, 72px); }
.payers-area { position: absolute; inset: 0; min-height: 0; margin: 0; overflow: hidden; border: 0; background: #11100f; isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.payers-fluid { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.payers-message { position: absolute; z-index: 4; left: 0; right: 0; bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px)); margin: 0; padding: 0 20px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .1em; pointer-events: none; }
.finger { position: absolute; z-index: 2; width: 86px; height: 86px; transform: translate(-50%, -50%); border: 3px solid var(--finger-color); border-radius: 50%; background: color-mix(in srgb, var(--finger-color) 25%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--finger-color) 12%, transparent); pointer-events: none; transition: scale 200ms var(--ease-out), opacity 200ms var(--ease-out); }
.finger.is-out { opacity: .06; scale: .72; }
.finger.is-winner { scale: 1.25; border-color: var(--paper); background: transparent; box-shadow: 0 0 0 10px color-mix(in srgb, var(--finger-color) 32%, transparent); }
.payers-count { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .1em; }
.beat-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 20px 0 28px; }
.beat-controls label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.beat-controls input { width: 74px; min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 0; background: #151515; color: var(--paper); font-size: 18px; text-align: center; }
.sequencer { display: grid; gap: 9px; width: min(100%, 650px); padding-bottom: 12px; }
.track { display: grid; grid-template-columns: 64px repeat(8, minmax(0, 1fr)); gap: 4px; align-items: center; }
.track-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.step { aspect-ratio: 1; min-height: 25px; padding: 0; border: 1px solid #4c4946; border-radius: 0; background: #201e1c; cursor: pointer; }
.step:nth-child(4n + 2) { border-left-color: #79716b; }
.step.is-on { background: var(--paper); border-color: var(--paper); }
.step.is-current { outline: 2px solid var(--orange); outline-offset: 1px; }
.step.is-on.is-current { background: var(--orange); border-color: var(--orange); }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 30px; }
.choice, .mode { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--paper); font: 600 13px/1.2 var(--font-sans); cursor: pointer; }
.choice[aria-pressed="true"], .mode[aria-pressed="true"] { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.excuse-result { min-height: 120px; margin: 24px 0; font-size: clamp(25px, 6vw, 48px); font-weight: 700; line-height: 1.13; letter-spacing: -.04em; }
.mode-row { display: flex; gap: 8px; }
@media (max-width: 600px) { .cositas-item { min-height: 104px; } .cositas-title { font-size: clamp(42px, 12vw, 72px); } .track { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; } .track-label { grid-column: 1 / -1; } .step { min-width: 0; min-height: 0; } .beat-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .beat-controls .tool-button { width: 100%; } .beat-controls label { justify-content: space-between; } .payers-intro { top: max(92px, calc(env(safe-area-inset-top) + 70px)); } .payers-intro .tool-note { max-width: 330px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .cositas-item, .finger { transition: none; } .payers-fluid { display: none; } .tap-pixels { transform: none; } }
