/* ========== ventnow.top — High-energy release theme ========== */
:root {
    --vent-play-h: min(78vh, 780px);
    --vent-play-w: min(98vw, 1100px);
    --bg-primary: #0d0a0b;
    --bg-secondary: #161012;
    --bg-tertiary: #1f1418;
    --bg-card: #261a20;
    --bg-input: #1f1418;
    --text-primary: #fff5f0;
    --text-secondary: #c4a8a0;
    --text-muted: #7a5f58;
    --accent: #ff6b35;
    --accent-light: #ff8c5a;
    --accent-dark: #e63946;
    --accent-glow: rgba(255, 107, 53, 0.22);
    --success: #06d6a0;
    --warning: #ffd166;
    --danger: #ef476f;
    --border: #3d2830;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --transition: 0.2s ease;
    --vent-gradient: linear-gradient(135deg, #ff6b35 0%, #e63946 50%, #9d0208 100%);
}

body.light {
    --bg-primary: #fff8f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ffe8e0;
    --bg-card: #ffffff;
    --bg-input: #fff0eb;
    --text-primary: #2d1f1a;
    --text-secondary: #5c4a44;
    --text-muted: #9a8580;
    --accent-glow: rgba(255, 107, 53, 0.15);
    --border: #f0d4cc;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar.minimal {
    background: transparent;
    border-bottom: none;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
}

.top-bar .logo { font-size: 1.05rem; font-weight: 800; color: var(--accent); }
.top-bar a.logo,
.top-bar .logo a { color: var(--accent); text-decoration: none; }
.top-bar a.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    margin: -6px -8px;
    border-radius: var(--radius-sm);
    min-height: 44px;
}
.top-bar a.logo:hover { color: var(--accent-light); text-decoration: none; }
.top-actions { display: flex; gap: 6px; align-items: center; }

.icon-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    min-width: 44px;
    min-height: 44px;
}

.text-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 44px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    min-height: 48px;
}

.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--vent-gradient); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-lg { padding: 16px 32px; font-size: 1.15rem; width: 100%; max-width: 320px; }
.btn-hero { padding: 20px 48px; font-size: 1.35rem; font-weight: 800; animation: pulse-glow 2.5s ease-in-out infinite; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 24px var(--accent-glow); }
    50% { box-shadow: 0 8px 40px rgba(255, 107, 53, 0.45); }
}

.hero-section {
    min-height: min(85vh, 720px);
    min-height: min(85dvh, 720px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 107, 53, 0.12) 0%, transparent 60%);
}

.hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    margin-bottom: 12px;
    background: var(--vent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 480px; margin-bottom: 32px; font-style: italic; }
.hero-note { margin-top: 16px; font-size: 0.62rem; color: var(--text-muted); opacity: 0.42; }

.micro-disclaimer,
.info-section.seo-static {
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.48;
    line-height: 1.45;
    margin-top: 32px;
    padding-top: 20px;
}
.info-section.seo-static h2 { font-size: 0.75rem; font-weight: 600; margin: 0 0 6px; opacity: 0.7; }
.info-section.seo-static p { font-size: inherit; margin: 0; }
.seo-disclaimer { font-size: 0.62rem; opacity: 0.4; }

.vent-hud-compact { padding: 6px 12px; }
.vent-track-row { padding: 2px 12px 8px; text-align: center; }
.vent-track-text { font-size: 0.82rem; color: var(--accent); font-weight: 600; letter-spacing: 0.02em; }

.vent-board-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 4px 12px 8px;
    max-width: var(--vent-play-w);
    margin: 0 auto;
}
.vent-board-picker-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vent-board-btns { display: inline-flex; gap: 6px; }
.vent-board-btn {
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.vent-board-btn:hover { border-color: var(--accent); color: var(--text); }
.vent-board-btn.active {
    background: rgba(255, 107, 53, 0.18);
    border-color: var(--accent);
    color: var(--accent);
}
.stress-tap-session.board-size-large .vent-cursor-aim { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-width: 3px; }
.stress-tap-session.board-size-small .vent-cursor-aim { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-width: 2px; }
.bubble-play-stage .tap-grid {
    justify-content: center;
    align-content: center;
}
.vent-stage-large {
    position: relative;
    margin: 0 auto 6px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: var(--vent-play-w);
    height: var(--vent-play-h);
    flex: 0 0 auto;
}
.vent-play-stage {
    position: relative;
    margin: 0 auto 6px;
    width: 100%;
    max-width: var(--vent-play-w);
    height: var(--vent-play-h);
    flex: 0 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: #1a1010;
}
.vent-play-stage:fullscreen,
.vent-play-stage:-webkit-full-screen {
    max-width: none;
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
}

.bubble-play-stage:fullscreen,
.bubble-play-stage:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    touch-action: none;
    cursor: none;
    background: var(--bg-secondary);
}

.bubble-play-stage:fullscreen .tap-grid,
.bubble-play-stage:fullscreen .wrap-grid,
.bubble-play-stage:-webkit-full-screen .tap-grid,
.bubble-play-stage:-webkit-full-screen .wrap-grid {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    touch-action: none;
    position: relative;
    z-index: 1;
}

.bubble-play-stage:fullscreen .vent-fs-btn,
.bubble-play-stage:-webkit-full-screen .vent-fs-btn {
    pointer-events: auto;
    z-index: 20;
}
.vent-fs-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 12;
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.45);
    color: #eee;
    cursor: pointer;
    backdrop-filter: blur(6px);
}
.punch-play-stage { display: flex; flex-direction: column; }
.punch-play-stage .vent-hit-zone { flex: 1; width: 100%; height: 100%; min-height: 0; position: relative; }
.vent-play-stage canvas,
.vent-stage-large canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 2; }
.vent-stage-large .tap-grid,
.vent-stage-large .wrap-grid { flex: 1; align-content: stretch; }

.tap-panel, .wrap-panel {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 10px;
}

.vent-cursor-aim {
    position: absolute;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid rgba(255, 107, 53, 0.85);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.45);
    transition: left 0.03s linear, top 0.03s linear;
}
.bubble-play-stage { cursor: none; }
.bubble-play-stage .tap-bubble,
.bubble-play-stage .wrap-cell { cursor: none; }
.scribble-session .vent-cursor-aim {
    border-color: rgba(255, 80, 40, 0.9);
    background: rgba(255, 107, 53, 0.15);
}

.bubble-play-stage {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 0;
}

.bubble-play-stage .tap-grid,
.bubble-play-stage .wrap-grid {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 8px;
    gap: 6px;
    align-content: stretch;
    width: 100%;
    height: 100%;
}

.bubble-play-stage .tap-bubble,
.bubble-play-stage .wrap-cell {
    min-height: 0;
    width: 100%;
    height: 100%;
}

.bubble-pop-label {
    position: absolute;
    z-index: 8;
    pointer-events: none;
    font-weight: 800;
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.9), 0 2px 4px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    animation: bubblePopLabel 0.45s ease-out forwards;
}

.wrap-pop-label {
    color: #e8f0ff;
    text-shadow: 0 0 6px rgba(140, 180, 255, 0.8), 0 2px 4px rgba(0,0,0,0.4);
    font-size: clamp(0.7rem, 2vw, 0.95rem);
}

@keyframes bubblePopLabel {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
    40% { opacity: 1; transform: translate(-50%, -70%) scale(1.15); }
    100% { opacity: 0; transform: translate(-50%, -120%) scale(0.85); }
}

.scribble-session .vent-play-stage canvas { cursor: crosshair; }

.shred-fx-stage {
    position: relative;
    margin-top: 12px;
    width: 100%;
    height: min(320px, 45vh);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: #0d0a0b;
}

.shred-fx-stage canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.shred-panel { margin: 16px; border: none; background: transparent; }
.shred-status { position: static; margin-top: 12px; text-align: center; }

.hub-section { padding: 40px 20px 60px; max-width: 960px; margin: 0 auto; width: 100%; }
.hub-section h2 { font-size: 1.5rem; margin-bottom: 20px; }

.category-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.category-links a {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
}

.tool-card:hover { border-color: var(--accent); text-decoration: none; }
.card-icon { font-size: 2rem; }
.card-title { font-weight: 700; }
.card-desc { font-size: 0.85rem; color: var(--text-muted); }
.card-tag { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; }

body.vent-now-page { overflow: hidden; }
.vent-now-main { flex: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding-top: 56px; }
.vent-session { flex: 0 1 auto; display: flex; flex-direction: column; min-height: 0; position: relative; align-items: stretch; }

.vent-hud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.vent-hud-label { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; }
.vent-timer { color: var(--accent-light); font-size: 1.4rem; }
.vent-combo { color: var(--warning); font-size: 1.4rem; }
.vent-hud-sep { color: var(--text-muted); }

.vent-hit-zone {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    will-change: transform;
}

.vent-rage-track {
    height: 4px;
    margin: 0 16px 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.vent-rage-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b35, #ff4757, #ffd166);
    border-radius: 2px;
    transition: width 0.08s linear;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.6);
}

.vent-combo.hit-bump { transform: scale(1.25); transition: transform 0.08s; }
.vent-combo.combo-fire {
    color: #ff4757;
    text-shadow: 0 0 12px rgba(255, 71, 87, 0.8);
    animation: combo-shake 0.3s ease infinite;
}

@keyframes combo-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.hit-popup {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 8px #ff6b35, 0 2px 4px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
    animation: hit-float 0.65s ease-out forwards;
}

@keyframes hit-float {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
    40% { opacity: 1; transform: translate(-50%, -80%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -140%) scale(1); }
}

.vent-hit-label {
    position: relative;
    z-index: 5;
    font-size: clamp(3rem, 15vw, 6rem);
    font-weight: 900;
    color: rgba(255, 107, 53, 0.18);
    pointer-events: none;
    transition: transform 0.08s, color 0.08s;
}

.vent-hit-label.hit-pulse {
    transform: scale(1.15);
    color: rgba(255, 107, 53, 0.55);
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
}

.vent-hit-zone canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.vent-tap-hint {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
}

.vent-nickname {
    margin: 0 16px 16px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    width: calc(100% - 32px);
    max-width: 280px;
    align-self: center;
}

.end-screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(13, 10, 11, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.end-screen-card { text-align: center; max-width: 360px; width: 100%; }
.end-screen-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 28px; }
.end-screen-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.end-screen-actions .btn { width: 100%; max-width: 280px; }

main { flex: 1; padding: 20px; max-width: 800px; margin: 0 auto; width: 100%; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 6px; }
.page-header p { color: var(--text-secondary); }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }

.tool-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 32px;
}

.tool-textarea {
    width: 100%;
    min-height: 160px;
    padding: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.btn-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.shred-stage { position: relative; min-height: 200px; overflow: hidden; }
.shred-strip {
    position: absolute;
    background: var(--bg-input);
    border: 1px solid var(--border);
    font-size: 0.7rem;
    overflow: hidden;
    animation: shredFall 1.2s ease-in forwards;
}

@keyframes shredFall {
    to { transform: translateY(120vh) rotate(720deg); opacity: 0; }
}

.tap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 4px 0; }
@media (min-width: 480px) { .tap-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
@media (min-width: 769px) { .tap-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }

.tap-bubble {
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 28% 28%, rgba(255,255,255,0.45), var(--accent) 55%, var(--accent-dark));
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    min-height: 56px;
    touch-action: manipulation;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
    transition: transform 0.06s;
    position: relative;
    overflow: visible;
}

.tap-bubble:active { transform: scale(0.88); }

.tap-bubble.popped { pointer-events: none; }

.tap-bubble.shattering {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
}

.bubble-shard {
    position: absolute;
    width: 38%;
    height: 38%;
    left: 31%;
    top: 31%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), var(--accent) 70%, var(--accent-dark));
    border-radius: 40% 60% 50% 50%;
    animation: shard-burst 0.42s ease-out forwards;
    animation-delay: var(--delay, 0s);
    pointer-events: none;
}

.bubble-flash {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 70%);
    animation: bubble-flash 0.25s ease-out forwards;
    pointer-events: none;
}

@keyframes shard-burst {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translate(var(--sx), var(--sy)) rotate(var(--rot)) scale(0.2); opacity: 0; }
}

@keyframes bubble-flash {
    0% { opacity: 1; transform: scale(0.5); }
    100% { opacity: 0; transform: scale(1.8); }
}

.cool-down-session { text-align: center; padding: 40px 20px; }
.breathe-circle {
    width: min(240px, 60vw);
    height: min(240px, 60vw);
    border-radius: 50%;
    margin: 32px auto;
    background: radial-gradient(circle, rgba(100, 180, 200, 0.3), rgba(50, 100, 120, 0.15));
    border: 3px solid rgba(100, 180, 200, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 4s ease-in-out;
}

.breathe-circle.inhale { transform: scale(1.15); }
.breathe-circle.exhale { transform: scale(0.85); }
.breathe-label { font-size: 1.25rem; font-weight: 600; color: var(--text-secondary); }
.skip-row { margin-top: 24px; }

.info-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-section h2, .info-section h3 { color: var(--text-primary); margin: 24px 0 12px; }
.faq-item { margin-bottom: 16px; }
.faq-q { font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }

.legal-page { max-width: 720px; }
.legal-content { line-height: 1.75; color: var(--text-secondary); }
.legal-section { margin-bottom: 24px; }
.legal-section h2 { color: var(--text-primary); margin-bottom: 8px; }

.vn-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(13, 10, 11, 0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}
.vn-consent-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}
.vn-consent-text {
    flex: 1 1 280px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.vn-consent-text a { color: var(--accent-light); }
.vn-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}
.vn-consent-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-height: 44px;
}
.footer-cookie-link {
    background: none;
    border: none;
    color: var(--accent-light);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.site-footer, footer {
    padding: 24px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-sister { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 12px; }
.tool-embed { height: calc(var(--vent-play-h) + 52px); min-height: calc(var(--vent-play-h) + 52px); border-radius: var(--radius); overflow: hidden; background: var(--bg-primary); border: 1px solid var(--border); margin-bottom: 24px; }
.hub-seo-static { max-width: 960px; margin: 0 auto; padding: 0 20px 40px; }
.no-results { color: var(--text-muted); padding: 24px; text-align: center; }

/* Device: mobile vs desktop hints */
.device-desktop .vent-hint-mobile { display: none !important; }
.device-mobile .punch-escape-hint {
    bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 6;
}
.device-mobile .vent-hint-desktop { display: none !important; }

.vent-kbd-hint {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 6;
    font-family: ui-monospace, monospace;
}

.vent-hit-zone:focus { outline: 2px solid rgba(255, 107, 53, 0.35); outline-offset: -2px; }

/* PC: wider vent canvas area */
@media (min-width: 769px) {
    .vent-now-main { padding-top: 52px; }
    .vent-stage-large,
    .vent-play-stage,
    .smash-stage,
    .vent-hit-zone,
    .bubble-play-stage,
    .scribble-session .vent-play-stage,
    .stomp-floor,
    .tap-panel,
    .wrap-panel {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 16px);
        height: var(--vent-play-h);
        max-width: var(--vent-play-w);
        min-height: unset;
    }
    .punch-bag-session .vent-hit-zone {
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }
    .whack-grid { max-width: 520px; gap: 14px; flex: 1; min-height: min(62vh, 560px); align-content: center; }
    .whack-hole { min-height: 100px; }
    .tap-bubble { min-height: 68px; }
    .vent-hud { font-size: 1.15rem; }
    .hero-section h1 { font-size: clamp(3rem, 6vw, 4.5rem); }
    main.wide { max-width: 960px; }
    .tool-embed { height: calc(var(--vent-play-h) + 52px); min-height: calc(var(--vent-play-h) + 52px); }
}

@media (max-width: 768px) {
    :root {
        --vent-play-h: min(calc(100dvh - 132px), 520px);
        --vent-play-w: 100%;
    }

    main { padding: 12px 12px 24px; }
    main.wide { padding: 12px; }
    .page-header { margin-bottom: 16px; }
    .page-header h1 { font-size: 1.45rem; }
    .page-header p { font-size: 0.9rem; }
    .breadcrumb { font-size: 0.82rem; margin-bottom: 8px; }

    .hero-section {
        min-height: min(72dvh, 560px);
        padding: 28px 16px 32px;
    }
    .hero-section h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
    .hero-subtitle { font-size: 1rem; margin-bottom: 24px; }

    .hub-section { padding: 24px 12px 40px; }
    .hub-section h2 { font-size: 1.25rem; }
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tool-card { padding: 16px; }

    body.vent-now-page { padding-bottom: 0; }
    body.vent-now-page .vent-now-main {
        padding-top: max(48px, calc(env(safe-area-inset-top) + 40px));
        min-height: 100dvh;
    }
    body.vent-now-page .vent-session {
        flex: 1;
        min-height: 0;
        width: 100%;
    }
    body.vent-now-page .vent-play-stage {
        flex: 1;
        min-height: min(calc(100dvh - 120px), 520px);
        height: auto;
        max-height: none;
        width: calc(100% - 4px);
        margin-bottom: 4px;
    }

    .vent-session { width: 100%; }
    .vent-hud {
        padding: 6px 8px;
        font-size: 0.92rem;
        flex-wrap: wrap;
        gap: 4px 6px;
    }
    .vent-hud-label { font-size: 0.65rem; }
    .vent-timer, .vent-combo { font-size: 1.15rem; }
    .vent-track-row { padding: 0 8px 6px; }
    .vent-track-text { font-size: 0.78rem; }

    .vent-board-picker {
        padding: 2px 8px 6px;
        gap: 6px;
    }
    .vent-board-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
        min-height: 36px;
    }

    .vent-play-stage {
        max-width: 100%;
        width: calc(100% - 8px);
        height: var(--vent-play-h);
        margin-left: auto;
        margin-right: auto;
        border-radius: 10px;
    }
    .bubble-play-stage .tap-grid,
    .bubble-play-stage .wrap-grid {
        padding: 6px;
        gap: 5px;
    }

    .vent-fs-btn {
        top: max(8px, env(safe-area-inset-top));
        right: 8px;
        padding: 10px 14px;
        min-height: 44px;
        font-size: 0.82rem;
    }

    .vent-kbd-hint, .vent-tap-hint {
        bottom: max(6px, env(safe-area-inset-bottom));
        font-size: 0.72rem;
        padding: 0 8px;
    }

    .tool-embed {
        height: auto;
        min-height: min(calc(100dvh - 180px), 560px);
        margin-bottom: 16px;
        border-radius: 10px;
    }
    .tool-embed .vent-play-stage {
        height: min(calc(100dvh - 200px), 480px);
    }

    .mode-picker-compact select,
    .mode-picker-compact input {
        max-width: 88px;
        font-size: 0.85rem;
    }

    .top-bar { padding: 8px 12px; }
    .btn-hero { padding: 18px 36px; font-size: 1.2rem; width: 100%; max-width: 320px; }
    .vent-nickname { margin-bottom: max(16px, env(safe-area-inset-bottom)); }
    .end-screen-overlay { padding: 16px; }
    .end-screen-title { font-size: 1.45rem; }

    .glass-session .vent-play-stage,
    .scribble-session .vent-play-stage,
    .chop-tree-session .vent-play-stage {
        min-height: min(calc(100dvh - 130px), 500px);
    }
}

.top-bar.minimal a.logo,
.top-bar.minimal .logo a { color: var(--accent); text-decoration: none; font-weight: 800; }
.top-bar.minimal a.logo:hover,
.top-bar.minimal .logo a:hover { color: var(--accent-light); }

.top-actions #now-mode-slot .mode-picker-compact { margin: 0; }

/* Whack 30s */
.whack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
    flex: 1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    align-content: center;
}

.whack-hole {
    aspect-ratio: 1;
    background: radial-gradient(ellipse at 50% 80%, #1a0a0a 0%, #2a1818 40%, #3d2830 100%);
    border: 2px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 72px;
    touch-action: manipulation;
}

.whack-mole {
    display: block;
    width: 70%;
    height: 70%;
    margin: 15% auto 0;
    border-radius: 50% 50% 40% 40%;
    background: linear-gradient(180deg, #ff8c5a, #e63946);
    transform: translateY(110%);
    transition: transform 0.12s ease-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.whack-hole.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.55), inset 0 0 12px rgba(255, 107, 53, 0.2);
    animation: whack-pulse 0.5s ease-in-out infinite;
}

@keyframes whack-pulse {
    0%, 100% { box-shadow: 0 0 16px rgba(255, 107, 53, 0.45); }
    50% { box-shadow: 0 0 28px rgba(255, 107, 53, 0.75); }
}

.whack-hole.active .whack-mole {
    transform: translateY(-5%);
    background: linear-gradient(180deg, #ff6b35, #ff4757);
    box-shadow: 0 6px 16px rgba(255, 71, 87, 0.6);
}

.whack-hole.whacked .whack-mole { transform: translateY(110%) scale(0.8); background: #666; }
.whack-hole.miss { animation: whack-miss 0.2s ease; }

@keyframes whack-miss {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.94); border-color: var(--danger); }
}

.whack-target-badge {
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent-light);
    padding: 4px 12px;
    font-weight: 700;
}

.mode-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.mode-picker-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; }
.mode-picker-select, .mode-picker-custom {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-height: 40px;
}
.mode-picker-custom { width: 88px; }

.mode-picker-compact {
    margin: 0;
    padding: 6px 10px;
    border: none;
    background: transparent;
    gap: 6px;
}
.mode-picker-compact .mode-picker-select { padding: 4px 8px; min-height: 32px; font-size: 0.8rem; }
.mode-picker-compact .mode-picker-custom { width: 64px; padding: 4px 8px; min-height: 32px; font-size: 0.8rem; }

.mode-stop-btn {
    margin-left: auto;
    padding: 4px 10px;
    font-size: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    min-height: 32px;
}
.mode-stop-btn:hover { border-color: var(--accent); color: var(--accent-light); }

.vent-hud .vent-timer.infinite-mode { color: var(--success); }

/* Glass smash — shared play stage */
.glass-session .vent-play-stage,
.scribble-session .vent-play-stage { margin: 0 auto 6px; }

.scribble-zone {
    flex: 1;
    position: relative;
    min-height: 280px;
    margin: 0 12px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-secondary);
}

.scribble-zone canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.scribble-wipe {
    position: absolute;
    inset: 0;
    background: rgba(13,10,11,0);
    animation: scribbleFade 0.9s ease forwards;
    pointer-events: none;
}

@keyframes scribbleFade {
    to { background: rgba(13,10,11,0.95); }
}

/* End screen more tools */
.end-screen-more { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.end-more-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.end-more-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.end-more-chip {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
}
.end-more-chip:hover { border-color: var(--accent); color: var(--accent-light); text-decoration: none; }

.smash-stage {
    position: relative;
    margin: 0 auto 6px;
    width: 100%;
    max-width: var(--vent-play-w);
    height: var(--vent-play-h);
    flex: 0 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: #1a1010;
}

.smash-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 2; }

.stuff-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a1010 0%, #2a1810 70%, #3d2518 100%);
}

.stuff-stage #stuff-fx-canvas { pointer-events: none; z-index: 3; }

.stuff-shelf {
    position: absolute;
    bottom: 18%;
    left: 10%;
    right: 10%;
    height: 12px;
    background: #5c4033;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 1;
}

.stuff-item {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    font-size: clamp(4.5rem, 20vw, 8rem);
    background: none;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.2s ease-out, opacity 0.2s;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.55));
    z-index: 4;
}

.stuff-item.smashing {
    transition: transform 0.32s cubic-bezier(0.15, 0.9, 0.25, 1.3), opacity 0.25s;
}

/* Bubble wrap */
.wrap-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 4px;
}
@media (min-width: 480px) { .wrap-grid { grid-template-columns: repeat(8, 1fr); gap: 8px; } }
@media (min-width: 769px) { .wrap-grid { grid-template-columns: repeat(10, 1fr); gap: 8px; } }

.wrap-cell {
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(180,200,220,0.35);
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55) 0%, rgba(200,220,240,0.25) 40%, rgba(140,170,200,0.15) 100%);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    min-height: 36px;
    touch-action: manipulation;
    transition: transform 0.05s;
}
.wrap-cell:active { transform: scale(0.85); }
.wrap-cell.popped {
    transform: scale(0.6);
    opacity: 0.25;
    box-shadow: none;
    background: rgba(100,120,140,0.1);
}

/* Stomp boxes */
.stomp-floor {
    position: relative;
    background: linear-gradient(180deg, #1a1410 0%, #2a2018 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.stomp-box {
    position: absolute;
    width: 22%;
    min-width: 64px;
    aspect-ratio: 0.85;
    background: none;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    padding: 0;
    transition: transform 0.15s;
}

.stomp-box-top {
    display: block;
    width: 100%;
    height: 55%;
    background: linear-gradient(135deg, #c4a574 0%, #8b6914 100%);
    border: 2px solid #6b4f10;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.stomp-box-side {
    display: block;
    width: 100%;
    height: 45%;
    background: linear-gradient(180deg, #a08050 0%, #6b5030 100%);
    border: 2px solid #5a4010;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.stomp-box.stomp-target .stomp-box-top {
    box-shadow: 0 0 16px rgba(255, 107, 53, 0.7), 0 4px 8px rgba(0,0,0,0.3);
    border-color: var(--accent);
}

.stomp-box.stomped { opacity: 0.35; transform: scaleY(0.35) translateY(40%); }
.stomp-box.stomp-crush { transform: scaleY(0.2) translateY(60%); transition: transform 0.2s ease-in; }

@media (min-width: 769px) {
    .whack-grid { max-width: 520px; gap: 14px; }
    .whack-hole { min-height: 100px; }
}
