/* ==============================================
   ぱ じゃま ぱーてぃー - style.css

   フォント設計（案B：レトロ哲学×やわらか）
     F.title      = 'Zen Old Mincho'      タイトル
     F.base       = 'Zen Maru Gothic'     ベースUI・掲示板
     F.meditation = 'Zen Old Mincho'      瞑想モーダル
     F.stats      = 'Zen Kaku Gothic New' 数字・統計
   ============================================== */

:root {
    /* 背景 */
    --bg-deep: #0a0a18;

    /* テキスト（視認性改善済み） */
    --text: rgba(220, 220, 235, 0.85);
    --text-sub: rgba(200, 200, 220, 0.6);
    --text-dim: rgba(180, 180, 210, 0.5);
    --text-faint: rgba(170, 170, 200, 0.35);

    /* アクセント */
    --pink: rgba(255, 200, 210, 0.9);
    --warm: rgba(230, 210, 190, 0.7);
    --warm-dim: rgba(220, 200, 180, 0.55);

    /* UI */
    --menu-bg: rgba(10, 10, 25, 0.75);
    --menu-border: rgba(110, 110, 150, 0.2);
    --menu-hover: rgba(110, 110, 150, 0.2);
    --modal-bg: rgba(12, 12, 24, 0.96);

    /* フォント */
    --f-base: 'Zen Maru Gothic', sans-serif;
    --f-title: 'Zen Old Mincho', serif;
    --f-meditation: 'Zen Old Mincho', serif;
    --f-stats: 'Zen Kaku Gothic New', sans-serif;
}

/* ==============================================
   Reset & Base
   ============================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%; overflow: hidden;
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--f-base);
    font-weight: 300;
    -webkit-tap-highlight-color: transparent;
    user-select: none; -webkit-user-select: none;
    touch-action: manipulation;
}

a { color: var(--pink); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--text); }

/* スクロールバー */
*::-webkit-scrollbar { width: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(110, 110, 150, 0.2); border-radius: 2px; }

/* select ダークテーマ */
select { color-scheme: dark; background: rgba(10, 10, 25, 0.9); color: var(--text); border: 1px solid var(--menu-border); border-radius: 4px; }

/* Material Symbols アイコン */
.mi {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: inherit;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 20;
    vertical-align: middle;
}

/* ==============================================
   Canvas
   ============================================== */
#spermCanvas {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    display: block; cursor: pointer; z-index: 1;
}

/* ==============================================
   CRTエフェクト
   ============================================== */
.crt-overlay {
    position: fixed; inset: 0;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.12) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none; z-index: 9999;
}
.crt-vignette {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none; z-index: 9998;
}

/* ==============================================
   瞑想オーバーレイ
   ============================================== */
#meditationOverlay {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 50;
    overflow: hidden;
}

/* 雪（氷コース用。初期opacity:0でdelay中に見えないように） */
.snowflake {
    position: absolute;
    opacity: 0;
    animation: snowfallSmooth 8s linear infinite;
}

.flame {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,200,60,0.9), rgba(255,80,20,0.6), transparent);
    filter: blur(2px);
    opacity: 0;
    animation: fireRise linear infinite;
}

/* 通常コースのほわほわ光 */
.sparkle-dot {
    position: absolute;
    border-radius: 50%;
}

/* ==============================================
   アニメーション
   ============================================== */
@keyframes iceBreath { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

@keyframes snowfallSmooth {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    5%   { opacity: 0.4; }
    95%  { opacity: 0.4; }
    100% { transform: translateY(105vh) rotate(180deg); opacity: 0; }
}

@keyframes fireFlicker { 0% { opacity: 0.5; } 100% { opacity: 0.7; } }

@keyframes fireRise {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 0.8; }
    60%  { opacity: 0.5; transform: translateY(-120px) scale(1.3); }
    100% { transform: translateY(-260px) scale(0.2); opacity: 0; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 0.8; transform: scale(1.3); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    25%      { opacity: 1;   transform: scale(1.2); }
    50%      { opacity: 0.4; transform: scale(1); }
    75%      { opacity: 0.9; transform: scale(1.1); }
}

@keyframes sparkleDrift0 { 0%,100%{translate:0 0}25%{translate:30px -20px}50%{translate:-15px -40px}75%{translate:-25px 15px} }
@keyframes sparkleDrift1 { 0%,100%{translate:0 0}25%{translate:-20px 30px}50%{translate:25px 15px}75%{translate:10px -25px} }
@keyframes sparkleDrift2 { 0%,100%{translate:0 0}25%{translate:15px 25px}50%{translate:-30px -10px}75%{translate:20px -30px} }
@keyframes sparkleDrift3 { 0%,100%{translate:0 0}25%{translate:-25px -15px}50%{translate:20px 30px}75%{translate:-10px 20px} }

@keyframes bonnoIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes medFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* モーダルアニメーション（CSSクラスで1回だけ再生） */
@keyframes modalBgIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalBoxIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes modalBoxFromMini {
    from { opacity: 0; transform: translate(-40%, 30%) scale(0.15); }
    to   { opacity: 1; transform: translate(0, 0) scale(1); }
}
.modal-bg  { animation: modalBgIn 0.3s ease forwards; }
.modal-box { animation: modalBoxIn 0.35s ease forwards; }
/* 左下ミニプレイヤーからのワイプ */
.modal-box.from-mini { animation: modalBoxFromMini 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; transform-origin: bottom left; }

/* ==============================================
   常駐UIレイヤー
   ============================================== */
.ui-layer {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 100;
}
.ui-layer > * { pointer-events: auto; }

/* --- 左上：サイト名 --- */
.top-left {
    position: absolute; top: 14px; left: 14px;
}
.site-title-main {
    font-family: var(--f-title);
    font-size: 18px;
    color: var(--text);
    font-weight: 400;
    letter-spacing: 0.25em;
}
.site-title-sub {
    font-size: 10px;
    color: var(--text-sub);
    letter-spacing: 0.08em;
    margin-top: 3px;
}
.site-title-for {
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* --- 右上：オンライン精子数 --- */
.top-right-info {
    position: absolute; top: 14px; right: 14px;
    font-family: var(--f-stats);
    font-weight: 300;
    text-align: right;
}
.online-label { font-size: 10px; color: var(--text-sub); }
.online-num { font-size: 13px; color: var(--text); margin-top: 1px; }
.online-num span { font-weight: 500; }

/* ==============================================
   左右サイドメニュー
   ============================================== */
.side-left {
    position: absolute; left: 8px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 6px;
}
.side-right {
    position: absolute; right: 8px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 6px;
}
.side-btn {
    width: 38px; height: 38px; border-radius: 8px;
    background: var(--menu-bg);
    border: 1px solid var(--menu-border);
    color: var(--text-sub); font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.side-btn:hover {
    background: var(--menu-hover);
    border-color: var(--text);
    color: var(--text);
    transform: scale(1.08);
}
.side-btn:active { transform: scale(0.95); }
.side-btn.locked { opacity: 0.35; cursor: default; }
.side-btn.locked:hover { transform: none; background: var(--menu-bg); border-color: var(--menu-border); color: var(--text-sub); }

/* ==============================================
   常駐ミニプレイヤー（左下）
   ============================================== */
.mini-player {
    position: absolute; bottom: 12px; left: 14px;
    width: 160px; max-width: 160px;
}
/* YouTube表示中は角を合わせる */
.mini-player.has-yt .mini-player-bar {
    border-radius: 0 0 10px 10px;
    border-top: none;
}
#miniYtEmbed {
    position: fixed; bottom: 48px; left: 14px;
    width: 160px; height: 90px;
    border-radius: 8px 8px 0 0; overflow: hidden;
    border: 1px solid var(--menu-border); border-bottom: none;
    background: #000; cursor: pointer;
    z-index: 101;
    transition: opacity 0.2s ease;
}
#miniYtEmbed.in-modal {
    z-index: 600;
    border-radius: 0;
    border: none;
}
#miniYtEmbed.yt-fade { opacity: 0; }
#miniYtEmbed iframe { width: 100%; height: 100%; border: none; pointer-events: none; }
#miniYtEmbed.in-modal iframe { pointer-events: auto; }
.mini-player-bar {
    display: flex; align-items: center; gap: 0;
    background: rgba(10, 10, 25, 0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: 10px; padding: 6px 10px;
    border: 1px solid var(--menu-border);
}
.mini-player-btn {
    background: none; border: none;
    color: var(--text); font-size: 18px;
    cursor: pointer; padding: 2px 4px;
}
.mini-player-info {
    margin-left: 6px; min-width: 0; flex: 1; cursor: pointer;
}
.mini-player-track {
    font-size: 10px; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-player-track.playing { color: var(--pink); }
.mini-player-artist {
    font-size: 8px; color: var(--text-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-player-like {
    background: none; border: none;
    color: var(--text-dim); font-size: 16px;
    cursor: pointer; padding: 0 2px; margin-left: 4px;
}
.mini-player-like.liked { color: var(--pink); }

/* --- 右下：ちゅっちゅカウンター --- */
.chu-counter {
    position: absolute; bottom: 12px; right: 14px;
    text-align: right; font-family: var(--f-stats); font-weight: 300;
}
.chu-total-label { color: var(--pink); font-size: 11px; }
.chu-total-num { font-size: 14px; color: var(--pink); font-weight: 500; }
.chu-unit { font-size: 11px; font-weight: 300; }
.chu-mine { margin-top: 2px; color: var(--warm-dim); font-size: 10px; }

/* ==============================================
   瞑想タイマー（画面上部に常駐）
   ============================================== */
#medTimer {
    position: fixed; top: 60px; left: 50%;
    transform: translateX(-50%);
    z-index: 200; text-align: center;
    min-width: 180;
}
#medTimerDisplay {
    font-family: var(--f-meditation);
    font-size: 28px; letter-spacing: 0.15em;
}
#medTimerDisplay.ice   { color: rgba(180, 220, 255, 0.8); text-shadow: 0 0 12px rgba(100, 180, 255, 0.4); }
#medTimerDisplay.fire  { color: rgba(255, 160, 80, 0.8);  text-shadow: 0 0 12px rgba(255, 80, 20, 0.4); }
#medTimerDisplay.normal{ color: rgba(255, 240, 180, 0.8); text-shadow: 0 0 12px rgba(255, 230, 150, 0.3); }
#medTimerCourse { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
#medTimerBarWrap {
    margin: 8px auto 0; width: 160px; height: 4px;
    background: rgba(110, 110, 150, 0.15);
    border-radius: 2px; overflow: hidden;
}
#medTimerBar {
    width: 0%; height: 100%; border-radius: 2px;
    transition: width 1s linear;
}
#medTimerBar.ice    { background: linear-gradient(90deg, rgba(100, 180, 255, 0.4), rgba(180, 220, 255, 0.7)); }
#medTimerBar.fire   { background: linear-gradient(90deg, rgba(255, 80, 20, 0.4), rgba(255, 160, 80, 0.7)); }
#medTimerBar.normal { background: linear-gradient(90deg, rgba(255, 230, 150, 0.3), rgba(255, 240, 180, 0.6)); }
#medTimerPct { font-size: 8px; color: var(--text-faint); margin-top: 3px; }
#medTimerStop {
    margin-top: 6px; padding: 4px 16px;
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: 6px; color: rgba(255, 150, 150, 0.8);
    font-size: 10px; cursor: pointer; font-family: inherit;
}

/* ==============================================
   モーダル共通
   ============================================== */
.modal-bg {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 500;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.modal-box {
    background: var(--modal-bg);
    border: 1px solid var(--menu-border);
    border-radius: 12px;
    width: 94vw; max-width: 580px; height: 85vh;
    display: flex; flex-direction: column;
    color: var(--text); font-size: 13px; line-height: 1.7;
}
.modal-header {
    padding: 14px 20px 10px;
    border-bottom: 1px solid var(--menu-border);
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
}
.modal-header h3 { font-size: 17px; margin: 0; font-weight: 400; }
.modal-close {
    background: none; border: none;
    color: var(--text-sub); font-size: 22px; cursor: pointer;
}
.modal-body {
    flex: 1; overflow: auto; padding: 14px 20px 22px;
}
#musicFooter {
    flex-shrink: 0;
    padding: 8px 20px;
    border-top: 1px solid var(--menu-border);
    font-size: 10px;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.6;
}
#musicFooter a {
    color: var(--pink);
    text-decoration: none;
}
#musicFooter:empty { display: none; }

/* Now Playing - ethereal glow */
.np-wrap {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,200,210,0.06) 0%, rgba(255,200,210,0.02) 50%, transparent 80%);
    position: relative;
    transition: all .6s ease;
}
.np-wrap.np-playing {
    background: radial-gradient(ellipse at 30% 50%, rgba(255,200,210,0.10) 0%, rgba(255,200,210,0.03) 50%, transparent 80%);
    animation: npBreathe 4s ease-in-out infinite;
}
@keyframes npBreathe {
    0%, 100% { box-shadow: 0 0 20px rgba(255,200,210,0.03), inset 0 0 20px rgba(255,200,210,0.02); }
    50%      { box-shadow: 0 0 30px rgba(255,200,210,0.07), inset 0 0 25px rgba(255,200,210,0.04); }
}
.np-inner {
    display: flex; align-items: center; gap: 10px;
}
.np-btn {
    background: none; border: none;
    color: var(--pink); font-size: 20px;
    cursor: pointer; padding: 2px 4px;
    opacity: 0.8; transition: opacity .2s;
}
.np-btn:hover { opacity: 1; }
.np-info { flex: 1; min-width: 0; }
.np-title {
    font-size: 12px; color: var(--pink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    letter-spacing: 0.02em;
}
.np-artist {
    font-size: 9px; color: var(--text-dim);
    margin-top: 2px;
}
.np-status {
    font-size: 14px; color: var(--pink);
    opacity: 0.7;
    animation: npPulse 2s ease-in-out infinite;
}
.np-status.paused {
    font-size: 10px; color: var(--text-faint);
    animation: none;
}
@keyframes npPulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* ==============================================
   煩悩ポップアップ
   ============================================== */
#bonnoPopup {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 400; text-align: center;
    animation: bonnoIn 0.5s ease;
}
.bonno-label {
    font-size: 13px; color: var(--pink);
    margin-bottom: 10px; letter-spacing: 0.1em;
}
.bonno-ad {
    width: 320px; height: 250px;
    border: 1px solid var(--menu-border);
    border-radius: 6px;
    background: rgba(5, 5, 16, 0.9);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}
.bonno-dismiss {
    margin-top: 12px; padding: 8px 28px;
    background: var(--menu-bg);
    border: 1px solid var(--menu-border);
    border-radius: 4px; color: var(--text-sub);
    font-size: 12px; cursor: pointer; font-family: inherit;
}

/* ==============================================
   瞑想完了メッセージ
   ============================================== */
#medFinished {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 450; background: rgba(5, 5, 16, 0.7);
    animation: medFadeIn 1s ease;
    cursor: pointer;
}
#medFinished .med-finished-inner {
    text-align: center; font-family: var(--f-meditation);
    line-height: 1.6;
}

/* ==============================================
   掲示板
   ============================================== */
.board-tabs {
    display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap;
}
.board-tab {
    padding: 7px 14px; background: none;
    border: 1px solid var(--menu-border);
    color: var(--text-sub); font-size: 11px;
    font-family: var(--f-base);
    border-radius: 4px; cursor: pointer; transition: all 0.2s;
}
.board-tab:hover { border-color: var(--text); color: var(--text); }
.board-tab.active {
    background: var(--menu-hover);
    border-color: var(--text); color: var(--text);
}

.board-description {
    font-size: 11px; color: var(--text-sub);
    line-height: 1.9; margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(255, 200, 210, 0.02);
    border-radius: 6px;
}

.post-new-toggle {
    width: 100%; padding: 10px 14px; margin-bottom: 12px;
    background: rgba(255, 200, 210, 0.04);
    border: 1px solid var(--menu-border);
    border-radius: 6px; color: var(--text-sub);
    font-size: 12px; cursor: pointer; text-align: left;
    font-family: inherit; transition: all 0.2s;
}
.post-new-toggle:hover { border-color: var(--text); }

.post-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--menu-border);
}
.post-body {
    font-size: 13px; line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap; word-break: break-word;
}
.post-suffix { color: var(--pink); }
.post-meta { font-size: 9px; color: var(--text-faint); margin-top: 4px; }

/* リアクション */
.post-reactions {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin-top: 6px; align-items: center; position: relative;
}
.reaction-btn {
    background: var(--menu-bg);
    border: 1px solid var(--menu-border);
    border-radius: 12px; padding: 2px 8px;
    font-size: 11px; cursor: pointer;
    transition: all 0.2s; color: var(--text-sub);
}
.reaction-btn:hover { border-color: var(--text); background: var(--menu-hover); }
.reaction-btn.mine { border-color: var(--pink); background: rgba(255, 200, 210, 0.08); }
.reaction-count { margin-left: 3px; font-size: 10px; }
.reaction-add {
    background: var(--menu-bg);
    border: 1px solid var(--menu-border);
    border-radius: 12px; padding: 2px 6px;
    font-size: 12px; cursor: pointer; color: var(--text-dim);
}

.reaction-picker {
    background: var(--modal-bg);
    border: 1px solid var(--menu-border);
    border-radius: 8px; padding: 6px 8px;
    display: flex; gap: 5px;
    flex-wrap: wrap; max-width: 300px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.reaction-picker button {
    background: none;
    border: 1px solid var(--menu-border);
    border-radius: 8px; padding: 4px 8px;
    font-size: 13px; cursor: pointer; color: var(--text);
    transition: all 0.2s;
}
.reaction-picker button.rp-selected {
    background: rgba(255, 200, 210, 0.12);
    border-color: var(--pink);
    box-shadow: 0 0 6px rgba(255, 200, 210, 0.15);
}

/* コメント展開 */
.post-comments-toggle {
    font-size: 10px; color: var(--text-dim);
    cursor: pointer; margin-top: 5px;
}
.post-comments {
    margin-top: 8px; padding-left: 12px;
    border-left: 1px solid var(--menu-border);
}
.comment-item {
    padding: 6px 0;
    border-bottom: 1px solid rgba(100, 100, 140, 0.08);
}
.comment-body {
    font-size: 12px; line-height: 1.6;
    color: var(--text-sub);
    white-space: pre-wrap; word-break: break-word;
}

/* 投稿フォーム */
.post-form {
    margin-bottom: 16px; padding: 14px;
    background: rgba(0, 0, 0, 0.2); border-radius: 8px;
}
.post-form textarea {
    width: 100%; min-height: 70px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--menu-border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--f-base);
    font-size: 13px; padding: 8px 10px;
    resize: vertical; line-height: 1.6;
    box-sizing: border-box;
}
.post-form textarea:focus { outline: none; border-color: var(--text-sub); }
.post-form textarea::placeholder { color: var(--text-faint); }

/* 語尾セレクター */
.suffix-label { font-size: 10px; color: var(--text-dim); margin-top: 8px; margin-bottom: 4px; }
.suffix-selector { display: flex; flex-wrap: wrap; gap: 4px; }
.suffix-option {
    padding: 3px 8px; background: none;
    border: 1px solid var(--menu-border);
    border-radius: 12px; color: var(--text-dim);
    font-size: 10px; cursor: pointer;
    font-family: var(--f-base); transition: all 0.2s;
}
.suffix-option:hover { border-color: var(--text); }
.suffix-option.selected { border-color: var(--pink); color: var(--pink); }

/* コメント用語尾（小さめ） */
.suffix-selector-sm .suffix-option { padding: 2px 6px; font-size: 9px; }

.post-submit-btn {
    margin-top: 10px; padding: 7px 24px;
    background: var(--menu-bg);
    border: 1px solid var(--menu-border);
    border-radius: 4px; color: var(--text-sub);
    font-size: 11px; font-family: var(--f-base);
    cursor: pointer; transition: all 0.3s;
}
.post-submit-btn:hover { border-color: var(--text); color: var(--text); }
.post-submit-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.locked-message {
    text-align: center; padding: 30px 16px;
    color: var(--text-faint); font-size: 12px; line-height: 2;
}

/* ページング */
.paging {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 16px; align-items: center;
}
.paging button {
    padding: 7px 14px; background: none;
    border: 1px solid var(--menu-border);
    border-radius: 4px; font-size: 10px;
    color: var(--text-sub); cursor: pointer;
    font-family: var(--f-base);
}
.paging button:disabled { opacity: 0.3; cursor: default; }
.paging .paging-info { font-size: 10px; color: var(--text-sub); }

/* 広告スロット（掲示板内） */
.ad-slot {
    margin: 14px auto; text-align: center;
}
.ad-slot-label { font-size: 9px; color: var(--text-dim); margin-bottom: 4px; }
.ad-slot-frame {
    width: 320px; height: 250px;
    border: 1px solid var(--menu-border);
    border-radius: 6px;
    background: rgba(5, 5, 16, 0.9);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}

/* ==============================================
   📊 じぶんメニュー
   ============================================== */
.jibun-stat {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(100, 100, 140, 0.08);
    font-size: 13px;
}
.jibun-stat .label { color: var(--text-dim); }
.jibun-stat .value { color: var(--text); font-family: var(--f-stats); }

.jibun-unlocks {
    margin-top: 16px; padding: 10px 12px;
    background: rgba(255, 200, 210, 0.03);
    border-radius: 6px; font-size: 10px;
    color: var(--text-dim); line-height: 1.8;
}

/* ==============================================
   プレイリスト・楽曲
   ============================================== */
.playlist-item {
    display: flex; align-items: center;
    padding: 10px 8px; border-radius: 4px;
    cursor: pointer; transition: background 0.2s; gap: 8px;
    border-bottom: 1px solid rgba(100, 100, 140, 0.06);
}
.playlist-item:hover { background: var(--menu-hover); }
.playlist-item.playing { background: rgba(255, 200, 210, 0.06); }
.playlist-item .track-num {
    font-size: 14px; color: var(--text-faint); width: 20px; text-align: center;
}
.playlist-item.playing .track-num { color: var(--pink); }
.playlist-item .track-info { flex: 1; min-width: 0; }
.playlist-item .track-title {
    font-size: 12px; color: var(--text-sub);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.playlist-item.playing .track-title { color: var(--pink); }
.playlist-item .track-artist { font-size: 9px; color: var(--text-dim); }
.playlist-item .track-like {
    font-size: 12px; color: var(--text-dim); cursor: pointer; padding: 2px 4px;
}
.playlist-item .track-like.liked { color: var(--pink); }

.playlist-footer {
    margin-top: 14px; padding-top: 10px;
    border-top: 1px solid var(--menu-border);
    font-size: 10px; color: var(--text-dim); line-height: 1.8;
}

/* ==============================================
   🔬 性感開発
   ============================================== */
.binaural-list {
    max-height: 200px; overflow-y: auto;
    margin-bottom: 14px; overflow-anchor: none;
}
.binaural-item {
    display: flex; align-items: center;
    padding: 10px 8px; border-radius: 4px;
    cursor: pointer; transition: background 0.2s; gap: 8px;
    border-bottom: 1px solid rgba(100, 100, 140, 0.06);
}
.binaural-item:hover { background: var(--menu-hover); }
.binaural-item.playing { background: rgba(255, 200, 210, 0.06); }
.binaural-item .track-title { font-size: 12px; color: var(--text-sub); flex: 1; }
.binaural-item.playing .track-title { color: var(--pink); }
.binaural-item .track-status { font-size: 9px; color: var(--pink); }

.seikan-links {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--menu-border);
    font-size: 10px; color: var(--text-dim); line-height: 2.2;
}

/* ==============================================
   お絵かき（DrawPad）
   ============================================== */
.drawpad-toggle {
    background: none;
    border: 1px solid var(--menu-border);
    border-radius: 4px; color: var(--text-sub);
    font-size: 10px; padding: 4px 12px;
    cursor: pointer; font-family: var(--f-base);
    margin-top: 8px;
}
.drawpad-toolbar {
    display: flex; gap: 4px; margin-bottom: 6px;
    flex-wrap: wrap; align-items: center;
}
.drawpad-btn {
    padding: 3px 8px; background: none;
    border: 1px solid var(--menu-border);
    border-radius: 4px; color: var(--text-dim);
    font-size: 9px; cursor: pointer; font-family: var(--f-base);
}
.drawpad-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text);
}
.drawpad-btn:disabled { opacity: 0.35; }
.drawpad-separator {
    width: 1px; height: 14px;
    background: var(--menu-border); margin: 0 2px;
}
.drawpad-canvas {
    width: 100%; border-radius: 6px;
    border: 1px solid var(--menu-border);
    touch-action: none; display: block;
    background: var(--bg-deep);
}

.drawpad-lock {
    font-size: 9px; color: var(--text-dim); margin-top: 8px;
}

/* ==============================================
   めいそうモーダル
   ============================================== */
.med-course-btn {
    width: 100%; padding: 16px;
    background: var(--menu-bg);
    border: 1px solid var(--menu-border);
    border-radius: 8px; color: var(--text-sub);
    font-size: 14px; cursor: pointer; text-align: left;
    font-family: var(--f-meditation);
    transition: all 0.2s;
}
.med-course-btn.selected { border-color: currentColor; }
.med-course-btn.normal.selected { color: rgba(255, 240, 180, 0.9); background: rgba(255, 230, 150, 0.08); }
.med-course-btn.ice.selected    { color: rgba(180, 220, 255, 0.9); background: rgba(100, 180, 255, 0.08); }
.med-course-btn.fire.selected   { color: rgba(255, 160, 80, 0.9);  background: rgba(255, 80, 20, 0.08); }

.med-start-btn {
    width: 100%; padding: 14px;
    background: rgba(220, 220, 235, 0.06);
    border: 1px solid rgba(220, 220, 235, 0.2);
    border-radius: 8px; color: var(--text);
    font-size: 15px; cursor: pointer;
    letter-spacing: 0.1em; font-family: var(--f-meditation);
}

.med-info {
    margin-top: 14px; padding: 10px 14px;
    background: rgba(100, 180, 100, 0.04);
    border-radius: 6px;
    border: 1px solid rgba(100, 180, 100, 0.1);
}
.med-info-text { font-size: 10px; color: rgba(150, 200, 150, 0.7); }
.med-info-unlock { font-size: 9px; color: var(--text-dim); margin-top: 4px; }

.dark-select {
    background: var(--bg-deep);
    border: 1px solid var(--menu-border);
    color: var(--text); padding: 5px 10px;
    border-radius: 4px; font-size: 12px;
    font-family: inherit; color-scheme: dark;
}

/* ==============================================
   Responsive
   ============================================== */
@media (max-width: 480px) {
    .side-btn { width: 34px; height: 34px; font-size: 14px; }
    .site-title-main { font-size: 15px; }
    .top-right-info { font-size: 9px; }
    .online-num { font-size: 11px; }
    .chu-counter { font-size: 9px; bottom: 10px; right: 10px; }
    .mini-player { bottom: 10px; left: 10px; width: 160px; max-width: 160px; }
    #miniYtEmbed { left: 10px; width: 160px; bottom: 46px; }
    .side-left { left: 4px; }
    .side-right { right: 4px; }
    .modal-box { height: 88vh; }
    .bonno-ad { width: 300px; height: 250px; }
}

@media (max-width: 360px) {
    .side-btn { width: 30px; height: 30px; font-size: 12px; }
    .site-title-main { font-size: 13px; }
    .chu-total-num { font-size: 12px; }
    .bonno-ad { width: 280px; height: 250px; }
}
