/* おひさまトリビア — ユーザー側 CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=Courier+Prime:wght@700&display=swap');

#ohb-user-app {
    font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
    background: radial-gradient(ellipse at 50% 30%, #1a1a2e 0%, #0a0a14 100%);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* --- タイトル --- */
.ohb-title {
    color: #FFD700;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255,215,0,.3);
}

/* --- お題 --- */
.ohb-topic {
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    max-width: 320px;
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255,215,0,.06);
    border: 1px solid rgba(255,215,0,.12);
}

/* --- カウンター数字 --- */
.ohb-count-num {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255,215,0,.5), 0 0 40px rgba(255,215,0,.2);
    line-height: 1;
    text-align: center;
}

/* --- LEDバー --- */
.ohb-bar {
    display: flex;
    gap: 3px;
    height: 14px;
    justify-content: center;
    margin-top: 6px;
}
.ohb-bar-seg {
    width: 10px;
    height: 14px;
    border-radius: 2px;
    background: rgba(255,255,255,.1);
    transition: background .2s;
}
.ohb-bar-seg.on-green  { background: #4ADE80; }
.ohb-bar-seg.on-yellow { background: #FACC15; }
.ohb-bar-seg.on-red    { background: #EF4444; }

/* --- ボタン --- */
.ohb-btn {
    margin-top: 32px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    background: radial-gradient(circle, #2a2a4a 0%, #1a1a2e 60%, #0d0d1a 100%);
    color: #FFD700;
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 0 20px rgba(255,215,0,.15), inset 0 -4px 12px rgba(0,0,0,.4);
    transition: transform .1s, background .1s, box-shadow .1s;
    position: relative;
    z-index: 10;
}
.ohb-btn:active,
.ohb-btn.pressing {
    transform: scale(0.92);
    background: radial-gradient(circle, #FFD700 0%, #B8860B 100%);
    color: #0a0a14;
    box-shadow: 0 0 40px rgba(255,215,0,.6), inset 0 2px 8px rgba(0,0,0,.3);
}
.ohb-btn:disabled {
    background: radial-gradient(circle, #333 0%, #1a1a1a 100%);
    color: #666;
    cursor: not-allowed;
    border-color: #555;
}

/* --- 残り回数 --- */
.ohb-remaining {
    margin-top: 20px;
    color: rgba(255,255,255,.4);
    font-size: .85rem;
    transition: color .3s;
}
.ohb-remaining.warn {
    color: #EF4444;
}

/* --- 全体表示 --- */
.ohb-total-badge {
    margin-top: 32px;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255,215,0,.08);
    border: 1px solid rgba(255,215,0,.15);
    color: rgba(255,255,255,.6);
    font-size: .8rem;
}
.ohb-total-badge strong {
    color: #FFD700;
    font-weight: 700;
}

/* --- 停止中オーバーレイ --- */
.ohb-paused {
    color: #EF4444;
    font-size: .9rem;
    font-weight: 700;
    margin-top: 16px;
}

/* --- パーティクル --- */
.ohb-particle {
    position: absolute;
    font-size: 2rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255,215,0,.6);
    pointer-events: none;
    z-index: 50;
    animation: ohb-float-up .9s ease-out forwards;
}
@keyframes ohb-float-up {
    0%   { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-120px) scale(1.4); }
}

/* --- 装飾リング --- */
.ohb-ring {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(255,215,0,.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
