
    :root{
      --bg:#0f172a;
      --panel:#111827;
      --muted:#94a3b8;
      --text:#e5e7eb;
      --text2:#8b8b8b;
      --accent:#22d3ee;
      --danger:#f87171;
      --ok:#4ade80;
      --chip:#1f2937;
    }



    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
      color:var(--text); background:linear-gradient(180deg,#0b1222 0%, var(--bg) 100%);
    }
    a{color:var(--accent)}
    .wrap{
      max-width:1200px; margin:0 auto; padding:16px 16px 60px;
      display:grid; gap:16px;
      
      grid-template-columns: 1.2fr 1fr;
    }
    h1 a{
      color: bisque;
      font-size: xx-large;
    }
    header{
      grid-column:1/-1;
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:6px;
      position: relative; /* 既存のままでもOK */
      margin-top: 20px;
    }
    header h1{
      font-size: 24px;
      margin: 0;
      position: static;   /* ★絶対配置をやめる */
    }
    pre{
      font-family: 'Courier New', Courier, monospace;
    }
    .title-wrap{
      display:flex;
      flex-wrap:wrap;
      align-items:baseline;
      gap:8px 12px;
      height :2.5rem;
    }
    .subtitle{
      color: var(--muted);
      font-weight: 700;
      font-size: 13px;
      letter-spacing: .2px;
      white-space: nowrap;           /* 幅がある時は横並びを優先 */
    }
    @media (max-width: 720px){
      .subtitle{ white-space: normal; }  /* 狭い時は自然に改行して下段へ */
    }

    /* フロー行は従来のまま。必要なら少し余白を追加 */
    /* .header-row{
       align-items: stretch; gap:16px; margin-top: 4px; 
    } */
    .header-actions{ margin-left:auto; }
    /* .header-actions{
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(15,23,42,.95); 
      backdrop-filter: blur(4px);     
      border-bottom: 1px solid #243047;
    } */
    header{ position: relative; }  /* バッジを右上に固定するため */
header{
  position: sticky;
  top: calc( -2.8rem - 18px );
  z-index: 1000;                 /* モーダル(10000)よりは低く */
  background: rgba(15,23,42,.95); /* 下が透けないように */
  backdrop-filter: blur(4px);     /* 任意 */
  border-bottom: 1px solid #243047;
}

/* 既存の header に margin-top:20px があるので、貼り付け時のズレを避けたいなら padding に変更 */
header{
  /* margin-top: 20px;  ← 消す */
  padding-top: 20px;              /* ← 置き換え */
}

    .badge{font-size:12px; color:#0b1222; background:var(--accent); border-radius:999px; padding:4px 10px; font-weight:700}
    .panel{
      background:var(--panel); border:1px solid #1f2937; border-radius:16px; padding:14px;
      margin-top: 5px;
    }
    .stack{display:flex; flex-direction:column; gap:10px}
    .stack label{font-weight: 900; font-size: larger; }
    .row{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
    .row .grow{flex:1 1 auto}
    .row_h{width: calc( 100% / 2 - 20px );}
    @media (max-width: 600px) {
      .row_h {
        /* width: calc(100% - 30px); */
        flex: none;     /* 幅を固定化 */
        min-width: 0;   /* はみ出し防止 */
      }
    }
    label{font-size:12px; color:var(--muted)}
    input[type="text"], input[type="number"], textarea, select{
       border:1px solid #243047; color:var(--text2);
      padding:10px 12px; border-radius:10px; outline:none;
      background: #EEFFFF;
    }
    input[type="checkbox"]{ transform:scale(1.2) }
    button{
      background:#0b1325; border:1px solid #243047; color:var(--text);
      padding:10px 14px; border-radius:12px; cursor:pointer; font-weight:700;
      transition:transform .06s ease, background .2s;
    }
    @media (max-width: 600px) {
      button{
        padding:10px 4px;
      }
    }
    button:hover{ background:#101a33 }
    button:active{ transform:scale(0.98) }
    .btn-primary{ background: linear-gradient(180deg,#0ea5e9,#0284c7); border-color:#0ea5e9 }
    .btn-danger{ border-color:#ef4444; color:#fecaca }
    .btn-ghost{ background:transparent; border-color:#243047 }
    .chips{ display:flex; gap:8px; flex-wrap:wrap }
    .chips.onecol{ flex-direction:column }
    .itemsBox{
       border:1px solid #243047; border-radius:12px; padding:8px; 
       /* max-height:600px;  */
       max-height: calc(100vh - 500px);
       min-height: 10rem;
       overflow:auto; background:#0b1325 }
    .chip{
      background:var(--chip); border:1px solid #243047; border-radius:999px; padding:1px 10px;
      display:flex; gap:6px; align-items:center; max-width:100%; width:100%; justify-content:space-between
    }
    .chip .name{max-width:42ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
    .chip small{ color:var(--muted) }
    .chip button{ padding:4px 8px }
    .chip .edit-area{ display:flex; gap:6px; flex:1; line-height: 2.2rem;}
    /* .chip .edit-area input{ width:calc( 100% / 2  ); } */
    .grid-2{ display:grid; gap:10px; grid-template-columns: 1fr 1fr }
    /* スマホ時 (幅600px以下) */
    @media (max-width: 600px) {
      .grid-2 {
        grid-template-columns: minmax( 230px, auto ) 1fr;
      }
      .grid-2 > .stack {
        min-width: 0; /* はみ出し防止 */
      }
    }
    @media (max-width: 500px) {
      .grid-2 {
        grid-template-columns: 1fr;
      }
    }
    .warn{ color:#fecaca; background:#3b0d12; border:1px solid #7f1d1d; border-radius:12px; padding:10px }
    .ok{ color:#d1fae5; background:#064e3b; border:1px solid #065f46; border-radius:12px; padding:10px }
    canvas#wheel{ width:100%; aspect-ratio:1/1; background:#0b1325; border-radius:16px; display:block }
    .pointer{ position:relative }
    .pointer::after{
      content:"▼"; position:absolute; top:0; left:50%; translate:-50% 0;
      font-size:22px; line-height:1; color:var(--accent);
      text-shadow: 0 0 6px rgba(34,211,238,.6);
      z-index:2;
    }
    .result-list{ display:flex; flex-direction:column; gap:8px }
    .result-item{ background:#0b1325; border:1px solid #243047; border-radius:12px; padding:10px }
    .result-item div strong{
      font-size: 2rem;
    }
    .effect{ position:absolute; inset:0; display:none; align-items:center; justify-content:center; flex-direction:column; pointer-events:none }
    .effect img{ width:50%; max-width:280px; opacity:0; transform:scale(.8); transition:opacity .3s ease, transform .3s ease }
    .effect.show{ display:flex }
    .effect.show img{ opacity:1; transform:scale(1) }
    .viewer-only{ display:none }
    .viewer .editor-only{ display:none !important }
    .viewer .viewer-only{ display:block }
    .winflash{ animation: flash 0.9s ease-out 1 }
    @keyframes flash{ 0%{ box-shadow:0 0 0 rgba(34,211,238,0) } 30%{ box-shadow:0 0 0 8px rgba(34,211,238,.25) } 100%{ box-shadow:0 0 0 rgba(34,211,238,0) } }
    @media (max-width: 900px){
      .wrap{ grid-template-columns: 1fr }
      .pointer::after{
        content:"▼"; position:absolute; top:0; left:50%; translate:-50% 0;
        font-size:22px; line-height:1; color:var(--accent);
        text-shadow: 0 0 6px rgba(34,211,238,.6);
        z-index:2;
      }
    }

    /* === Drum (slot) style === */



    #drumWrap{ background:#0b1325; border-radius:16px; display:none }
    #drumWindow{ position:absolute; inset:16px; border:1px solid #243047; border-radius:12px; overflow:hidden; 
      
    }


    #drumTrack{ position:absolute; left:0; right:0; top:0; will-change: transform; }
    .drumItem{ padding:14px 12px; text-align:center; font-weight:800; font-size:18px; border-bottom:1px solid #243047; color:#e5e7eb; background:#0b1325}
    #drumCenterLine{ position:absolute; left:0; right:0; top:50%; height:2px; background:rgba(34,211,238,.6); box-shadow:0 0 6px rgba(34,211,238,.6) }
  
    /* mode classes */
    body.mode-drum #wheel{ display:none !important }
    body.mode-drum #drumWrap{ display:block !important }
    body.mode-wheel #wheel{ display:block !important }
    body.mode-wheel #drumWrap{ display:none !important }
    .input_weight{ width: 65px; }
    .input_name{ width: calc( 100% - 65px - 20px ) }
    .input_name2{ width: calc( 100% - 65px - 90px ) }
    .muted-count{ color: var(--muted); font-weight:700; }
    #drumWindow::before{
      content:"";
      position:absolute; inset:0;
      pointer-events:none;
      background:
        repeating-linear-gradient(
          to bottom,
          rgba(255,255,255,0.06) 0 6px,
          rgba(255,255,255,0.00) 6px 12px
        );
      opacity: 0; /* 通常は非表示 */
    }

    

    /* 上下フェード（奥行きとドラム感） */
    #drumWindow::after{
      content:"";
      position:absolute; inset:0;
      pointer-events:none;
      background:
        linear-gradient(to bottom, rgba(11,19,37,0.9), transparent 18%, transparent 82%, rgba(11,19,37,0.9));
      mix-blend-mode: normal;
    }

    /* 回転中だけハッチを流す */
    .spinning #drumWindow::before{
      opacity: 1;
      animation: drumStripes 300ms linear infinite;
    }

    @keyframes drumStripes{
      from { background-position-y: 0; }
      to   { background-position-y: 12px; }
    }

    /* ついでに回転中はほんのりブラーで動感UP */
    .spinning .drumItem{
      filter: blur(0.2px);
    }


/* —— ドラム項目の遠近・透明度（JSが --scale / --alpha を更新）—— */
#drumWindow { perspective: 800px; } /* 少しだけ立体感（強すぎない） */

.drumItem{
  transform-origin: center center;
  transform: scale(var(--scale, 1));
  opacity: var(--alpha, 1);
  will-change: transform, opacity;
  transition: transform 40ms linear, opacity 40ms linear;
}

/* 手回し中の“慣性っぽい”手触り（任意/目立たない程度） */
.drumItem.handspin {
  transition: none; /* つまんで動かしてる間は即時反映 */
}

/* 交互にほんの少しだけ明度差を付ける（回転ドラムぽく） */
.drumItem:nth-child(odd){  background:#0c1427; }  /* 元 #0b1325 より少しだけ明るい */
.drumItem:nth-child(even){ background:#1b2335; }
    



    

    /* ===== editor-hidden mode ===== */
    body.editor-hidden section.panel.stack.editor-only { display:none !important }
    body.editor-hidden .wrap{ gap:12px }

  
    /* ===== editor-aware layout for roulette + results ===== */
    /* Default (editor UI visible): stack vertically */
    .row.twocol{ flex-wrap: wrap; align-items: stretch; }
    .row.twocol > .pointer,
    .row.twocol > .stack{ flex: 1 1 100%; min-width: 0; }

    /* When editor UI is hidden AND viewport is wide enough, switch to side-by-side */
    @media (min-width: 901px){
      body.editor-hidden #mainPanel{ grid-column: 1 / -1; }
      body.editor-hidden .row.twocol{ flex-wrap: nowrap; }
      body.editor-hidden .row.twocol > .pointer{ flex: 1 1 640px; min-width: 420px; }
      body.editor-hidden .row.twocol > .stack{ flex: 0 1 480px; min-width: 360px; }
    }
    #winnerBanner {
      position:absolute;
            top:calc( 50% - 15px );
            left:50%;
            transform:translate(-50%,-50%);
            font-weight:800;
            color:#081322;
            padding:8px 16px;
            border-radius:999px;
            display:none;
            z-index:20;
            text-shadow:
              -1px -1px 0 #fff,
               1px -1px 0 #fff,
              -1px  1px 0 #fff,
               1px  1px 0 #fff;

    }
    @keyframes popIn {
      0%   { transform: scale(0.5); opacity: 0; }
      60%  { transform: scale(1.2); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }

    #lockBadge{
      position:absolute; right:12px; top:8px;
      display:none;
    }
    .lock-badge{
      background: linear-gradient(180deg,#ef4444,#b91c1c);
      color:#fff;
    }


    .lock-overlay{
      position: fixed; inset: 0;
      background: rgba(0,0,0,.55);
      display: none;            /* JSで切り替え */
      align-items: center; justify-content: center; flex-direction: column;
      z-index: 9999;
      pointer-events: all;
    }
    .lock-overlay .spinner{
      width: 48px; height: 48px;
      border: 4px solid rgba(255,255,255,.25);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    .lock-overlay .msg{
      margin-top: 12px; font-weight: 800; font-size: 16px; color: #fff; text-align: center;
    }
    @keyframes spin{ to { transform: rotate(360deg); } }



/* === Header flow & public URL layout === */
/* .header-actions{ margin-left:auto; } */
/* @media( max-width : 600px ){
  .header-actions{ margin-top: 4rem; }
  

} */
.header-row{ align-items: stretch; gap:16px; }
.flow{ display:flex; align-items:center; gap:8px; min-height: 68px; }
.sep{ margin: 0 0px; opacity:.8 }
.public-url-grid{ display:grid; grid-template-columns: auto 1fr auto;  align-items:center; gap:6px 8px; min-width: 420px; }
.public-label{ grid-row: 1 / span 2; grid-column: 1; font-weight:700; white-space:nowrap; }
.public-url{ grid-row: 1 / span 2; grid-column: 2; }
.url-actions{ grid-row: 1 / span 2; grid-column: 3; display:flex; flex-direction:column; gap:4px; }
.url-action{ display:flex; align-items:center; gap:6px; }
.url-action .arrow{ font-weight:700; }
.small{ padding:8px 10px; border-radius:10px; }

/* Show 'エントリー表示' only when editor is hidden */
.show-entries-btn{ display:none; margin-left:6px; transform: translateY(-4px); }
body.editor-hidden .show-entries-btn{ display:inline-flex; }

/* Minimize button on editor panel (top-right) */
.min-editor-btn{ position:absolute; top:8px; right:8px; z-index:5; }

/* Corner labels overlapping border */
.corner-label{
  position:relative; 
  width: fit-content;
  
  top:-24px; left:14px;
  padding:4px 10px; font-size:12px; font-weight:700;
  background: var(--bg, #0b1325); border-radius:10px;
  border:1px solid var(--border, #273147);
  box-shadow: 0 0 0 2px var(--bg, #0b1325); /* create a cutout effect */
  margin-bottom: -23px;
}
/* Ensure target containers have relative positioning */
.grid-2 > .entry-panel{ position:relative; border:1px solid var(--border, #273147); border-radius:12px; padding-top:16px; padding-left:8px; padding-right:8px; }
#mainPanel.panel.stack{ position:relative; }

/* Disabled buttons look subdued */
button:disabled, .btn-ghost:disabled, .btn-primary:disabled{ opacity:.5; cursor: not-allowed; }

/* Responsive fallback */
@media (max-width: 900px){
  .public-url-grid{ grid-template-columns: auto 1fr; grid-template-rows: auto auto; min-width: 0; width:100%; }
  .url-actions{ 
    grid-column: 1 / span 2; 
    /* grid-row: 2; flex-direction:row;  */
  }
  #shareUrl{
    width: 10rem;
  }
  .public-url{ height: auto; }
}



/* Place corner label and minimize icon within the entry wrapper */
.entry-panel .corner-label{ position:absolute; top:-10px; left:14px; }
.entry-panel .min-editor-btn{ position:absolute; top:8px; right:8px; }
.btn-icon{ 
  padding:2px 8px; 
  border-radius:8px; 
  line-height:1; 
  font-size:14px; 
}
#showEntriesBtn{
    position: absolute;
    top: 3rem;
}


/* === Flow checkmarks === */
.btn-wrap{ position:relative; display:inline-flex; align-items:center; }
.done-badge{
  position:absolute;
  top:-10px;           /* place above the button */
  left:50%;
  transform: translate(-50%, -100%);
  background: linear-gradient(180deg,#10b981,#059669);
  color:#fff;
  font-weight:900;
  border-radius:999px;
  padding:2px 8px;
  line-height:1;
  box-shadow:0 2px 6px rgba(0,0,0,.35);
  display:none;
}
.btn-wrap .done-badge.show{ display:inline-block; }


/* === Modal styling === */
.modal{ position:fixed; inset:0; z-index:10000; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.modal-panel{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:min(720px, 92vw); max-height:86vh; overflow:auto;
  background: var(--panel); border:1px solid #243047; border-radius:16px; padding:12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.modal-header{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:4px 8px; }
.modal-header h2{ margin:0; font-size:18px; }
.modal-body{ padding:8px; line-height:1.65; }
.modal-body .kv{ margin:8px 0; padding:8px; background:#0b1325; border:1px solid #243047; border-radius:10px; }
.modal-body ul{ margin:8px 0; padding-left:1.2em; }
.modal-footer{ display:flex; justify-content:flex-end; gap:8px; padding:8px; }


/* === Modal rich content === */
.modal-body .h3{ font-size:16px; margin:10px 0 6px; border-left:3px solid #2dd4bf; padding-left:8px; }
.modal-body code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; padding:2px 6px; border:1px solid #243047; border-radius:6px; background:#0b1325; font-size: 0.95em; }
.modal-body ol.mono li code, .modal-body .kvgrid .v code{ word-break: break-all; }
.modal-body .kvgrid{ display:grid; grid-template-columns: 1fr 2fr; gap:6px 10px; }
.modal-body .kvi{ display:contents; }
.modal-body .kvi .k{ color:#a3b2d9; }
.modal-body .kvi .v{ font-weight:600; }
.modal-body .sub{ font-size: 12px; opacity:.9; margin-top:4px; }

.public-url-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #243047;
  border-radius: 10px;
  background: #0b1325;
  padding: 6px;
  gap: 6px;
}

.public-url-wrapper .public-url {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px;
  outline: none;
  color: var(--text);
}
.segmented{
  display:inline-flex;
  align-items:center;
  background:#0b1325;
  border:1px solid #243047;
  border-radius:999px;
  padding:4px;
  gap:4px;
  user-select:none;
}
.segmented .seg-btn{
  background:transparent;
  border:none;
  color:var(--text2);
  padding:8px 14px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  line-height:1;
}
.segmented .seg-btn[aria-pressed="true"]{
  background: linear-gradient(180deg,#0ea5e9,#0284c7);
  color:#fff;
}
.segmented .seg-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}


/* === Slot Machine style (cute & simple) === */
/* === Slot Machine style (cute & simple, white & pastel) === */
:root{
  --slot-bg:        #ffffff;
  --slot-panel:     #000;
  --slot-border:    #d6d9e0;
  --slot-accent:    #60a5fa;   /* パステル青 */
  --slot-accent-2:  #f472b6;   /* パステルピンク */

  /* 各数字の“固定色”（スロットっぽく、やさしいビビッド） */
  --slot-digit-0: #94a3b8;  /* 0: スレート */
  --slot-digit-1: #ef4444;  /* 1: レッド */
  --slot-digit-2: #60a5fa;  /* 2: ブルー */
  --slot-digit-3: #34d399;  /* 3: ミント */
  --slot-digit-4: #f59e0b;  /* 4: ゴールド寄りオレンジ */
  --slot-digit-5: #a78bfa;  /* 5: ラベンダー */
  --slot-digit-6: #2dd4bf;  /* 6: ティール */
  --slot-digit-7: #fbbf24;  /* 7: アンバー（“7”映え） */
  --slot-digit-8: #fb7185;  /* 8: ピンク */
  --slot-digit-9: #818cf8;  /* 9: インディゴ */

  --slot-text:      #111827;  /* 予備（未使用） */
  --slot-muted:     #9fb0d0;
  --slot-cell-h:    56px;     /* ← JS の slotCellH と揃える（今56で一致） */
  --slot-radius:    16px;
  --slot-shadow:    0 12px 24px rgba(0,0,0,.25);
}
#slotWindow {
  background: lightsteelblue;
  font-family: "Rounded Mplus 1c", "Segoe UI", system-ui;

}
body.mode-slot #wheel{ display:none !important }
body.mode-slot #drumWrap{ display:none !important }
body.mode-slot #slotWrap{ display:block !important }

/* 外枠（窓）= 白系 */
.slot-window{
  position:absolute; inset:16px;
  background: linear-gradient(180deg, #ffffff, #f6f7fb);
  border: 1px solid var(--slot-border);
  border-radius: calc(var(--slot-radius) + 4px);
  box-shadow: var(--slot-shadow), inset 0 0 0 1px rgba(255,255,255,.7);
  overflow: hidden;
}

/* 少し内側の縁（白） */
.slot-bezel{
  position:absolute; inset:12px;
  border-radius: var(--slot-radius);
  background: var(--slot-panel);
  border: 1px solid #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
  pointer-events:none;
}

/* リール全体（白系） */
.slot-reels{
  position:absolute; inset:22px;
  display:flex; gap:10px; align-items:stretch;
}

/* 各リール（白） */
.slot-reel{
  position:relative; flex:1 1 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  overflow:hidden;
}
.slot-reel.spinning .slot-cell{ filter: blur(.15px); }

/* 帯 */
.slot-track{ position:absolute; left:0; right:0; top:0; will-change: transform; }

/* セル（数字）— 白ベースに薄グレーの段差 */
.slot-cell{
  height: var(--slot-cell-h);
  line-height: var(--slot-cell-h);
  text-align:center; font-weight:900; font-size:40px; letter-spacing:.5px;
  /* 数字の縁取りっぽい立体感（白背景でも読みやすい） */
  text-shadow:
    0 1px 0 rgba(255,255,255,.85),
    0 1.2px 0 rgba(0,0,0,.06);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
  background: #ffffff;
  user-select: none;
}
.slot-cell:nth-child(2n){ background: #f9fbff; }

/* 数字ごとの“固定色”（各桁すべてで共通） */
.slot-cell[data-digit="0"]{ color: var(--slot-digit-0); }
.slot-cell[data-digit="1"]{ color: var(--slot-digit-1); }
.slot-cell[data-digit="2"]{ color: var(--slot-digit-2); }
.slot-cell[data-digit="3"]{ color: var(--slot-digit-3); }
.slot-cell[data-digit="4"]{ color: var(--slot-digit-4); }
.slot-cell[data-digit="5"]{ color: var(--slot-digit-5); }
.slot-cell[data-digit="6"]{ color: var(--slot-digit-6); }
.slot-cell[data-digit="7"]{ color: var(--slot-digit-7); }
.slot-cell[data-digit="8"]{ color: var(--slot-digit-8); }
.slot-cell[data-digit="9"]{ color: var(--slot-digit-9); }

/* 当たり帯（薄パステル） */
.slot-focus-band{
  position:absolute; left:22px; right:22px;
  top: calc(50% - var(--slot-cell-h)/2 + 22px );
  height: var(--slot-cell-h);
  background: linear-gradient(90deg,
    rgba(96,165,250,.18),
    rgba(244,114,182,.22) 50%,
    rgba(96,165,250,.18));
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  pointer-events:none;
}

/* センター細ライン（青→ピンク） */
.slot-center-line{

}

/* テカリ */
.slot-gloss{
  position:absolute; left:0; right:0; top:0; height:38%;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
  pointer-events:none;
}


/* --- Entry table (番号・名前・倍率) --- */
.entry-table-wrap { overflow:auto; }
.entry-table{
  width:100%;
  border-collapse: collapse;
  background:#0b1325;
  border:1px solid #243047;
  border-radius:12px;
  overflow:hidden;
}
.entry-table th,
.entry-table td{
  padding:8px 10px;
  border-bottom:1px solid #243047;
  text-align:left;
  white-space:nowrap;
}
.entry-table th{ color:#a3b2d9; font-weight:800; background:#0f1a33; position:sticky; top:0; }
.entry-table td:nth-child(1){ width:5ch; text-align:right; }
.entry-table td:nth-child(3){ width:6ch; text-align:right; }
.entry-table .muted{ color:var(--muted); }

#kospasoLogo {
  position: absolute;
  top: -35px;                 /* ← 余白なしで上にくっつける */
  right: -15px;
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 4px 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#kospasoLogo img {
  height: 36px;
  width: auto;
  display: block;
}

body.mode-gacha #wheel{ display:none !important }
body.mode-gacha #drumWrap{ display:none !important }
body.mode-gacha #slotWrap{ display:none !important }
body.mode-gacha #gachaWrap{ display:block !important }

details strong{
  font-size: larger;
}
details pre{
  padding-left: 1rem;
}
