/*       裏世界遷移用ボタンCSS↓               */

/* 裏世界ボタンのスタイル /js/ura/pc-butonn.js */
.entry-btn.ura-world-btn {
    background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e, #0f0f23);
    background-size: 300% 300%;
    animation: uraWorldGradient 3s ease infinite;
    border: 2px solid #00ffdd;
    box-shadow: 
        0 0 20px rgba(0, 247, 255, 0.5),
        0 0 40px rgba(0, 247, 255, 0.3),
        inset 0 0 20px rgba(0, 247, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.entry-btn.ura-world-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(0, 247, 255, 0.7),
        0 0 60px rgba(0, 247, 255, 0.5),
        inset 0 0 30px rgba(0, 247, 255, 0.2);
    border-color: #00ffea;
}

.entry-btn.ura-world-btn p {
    color: #00ffea;
    text-shadow: 
        0 0 10px rgba(0, 247, 255, 0.8),
        0 0 20px rgba(0, 247, 255, 0.6),
        0 0 30px rgba(0, 247, 255, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
    animation: uraWorldTextGlow 2s ease-in-out infinite alternate;
}

.entry-btn.ura-world-btn:hover p {
    color: #ffffff;
    text-shadow: 
        0 0 15px rgb(0, 255, 221),
        0 0 25px rgba(0, 247, 255, 0.8),
        0 0 35px rgba(0, 247, 255, 0.6);
}

/* マトリックス風の流れるエフェクト */
.entry-btn.ura-world-btn::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, #00ffea, transparent);
    border-radius: inherit;
    z-index: -1;
    animation: uraWorldBorder 2s linear infinite;
    opacity: 0.7;
}

.entry-btn.ura-world-btn::after {
    content: "▲▼◆■●";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: rgba(0, 255, 255, 0.1);
    font-size: 8px;
    z-index: -1;
    overflow: hidden;
    animation: uraWorldMatrix 4s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 5px;
}

/* グリッチエフェクト */
.entry-btn.ura-world-btn.glitch {
    animation: uraWorldGlitch 0.3s linear;
}

/* ボタン変化時のトランジション */
.entry-btn.transitioning-to-ura {
    animation: buttonFlipTransition 0.8s ease-in-out;
}

/* アニメーション定義 */
@keyframes uraWorldGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes uraWorldTextGlow {
    0% { 
        text-shadow: 
            0 0 10px rgba(0, 255, 255, 0.8),
            0 0 20px rgba(0, 255, 255, 0.6),
            0 0 30px rgba(0, 255, 255, 0.4);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(0, 255, 255, 1),
            0 0 25px rgba(0, 255, 255, 0.8),
            0 0 35px rgba(0, 255, 255, 0.6);
    }
}

@keyframes uraWorldBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes uraWorldMatrix {
    0% { 
        transform: translateY(100%);
        opacity: 0;
    }
    50% { 
        opacity: 0.1;
    }
    100% { 
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes uraWorldGlitch {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 0); }
    20% { transform: translate(2px, 0); }
    30% { transform: translate(-1px, 0); }
    40% { transform: translate(1px, 0); }
    50% { transform: translate(-2px, 0); }
    60% { transform: translate(2px, 0); }
    70% { transform: translate(-1px, 0); }
    80% { transform: translate(1px, 0); }
    90% { transform: translate(-2px, 0); }
}

@keyframes buttonFlipTransition {
    0% { 
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
    25% { 
        transform: rotateY(90deg) scale(0.8);
        opacity: 0.7;
    }
    50% { 
        transform: rotateY(180deg) scale(0.9);
        opacity: 0.5;
    }
    75% { 
        transform: rotateY(270deg) scale(0.8);
        opacity: 0.7;
    }
    100% { 
        transform: rotateY(360deg) scale(1);
        opacity: 1;
    }
}

/* レスポンシブ対応 */
@media (max-width: 820px) {
    .entry-btn.ura-world-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .entry-btn.ura-world-btn::after {
        font-size: 6px;
        letter-spacing: 3px;
    }
}

@media (max-width: 550px) {
    .entry-btn.ura-world-btn p {
        font-size: 12px;
    }
    
    .entry-btn.ura-world-btn::after {
        font-size: 4px;
        letter-spacing: 2px;
    }
}

/* ====== モバイル(ハンバーガー)用 追加CSS ====== */
/* ボタン本体（既存と同質のエフェクトを付与） */
#hamberger-btn.ura-world-btn {
  background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e, #0f0f23);
  background-size: 300% 300%;
  animation: uraWorldGradient 3s ease infinite;
  border: 2px solid #00fff2;
  box-shadow:
    0 0 20px rgba(0, 255, 242, 0.5),
    0 0 40px rgba(0, 255, 234, 0.3),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* タッチ環境での押下時 */
#hamberger-btn.ura-world-btn:active {
  transform: scale(1.05);
  box-shadow:
    0 0 30px rgba(0, 255, 234, 0.7),
    0 0 60px rgba(0, 255, 213, 0.5),
    inset 0 0 30px rgba(0, 255, 221, 0.2);
  border-color: #00ccff;
}

/* hover可能な環境ではhoverも有効化 */
@media (hover: hover) {
  #hamberger-btn.ura-world-btn:hover {
    transform: scale(1.05);
    box-shadow:
      0 0 30px rgba(0, 255, 213, 0.7),
      0 0 60px rgba(0, 255, 255, 0.5),
      inset 0 0 30px rgba(0, 255, 255, 0.2);
    border-color: #00eeff;
  }
}

/* ハンバーガー3本線をネオングリーンに */
#hamberger-btn.ura-world-btn .icon span {
  background-color: #00fff2 !important;
  box-shadow:
    0 0 6px rgba(0, 238, 255, 0.8),
    0 0 12px rgba(0, 255, 221, 0.6);
}

/* マトリックス風エッジ＆背景記号（既存のアニメーションを再利用） */
#hamberger-btn.ura-world-btn::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, transparent, #00ffdd, transparent);
  border-radius: inherit;
  z-index: -1;
  animation: uraWorldBorder 2s linear infinite;
  opacity: 0.7;
}

#hamberger-btn.ura-world-btn::after {
  content: "▲▼◆■●";
  position: absolute;
  inset: 0;
  color: rgba(0, 238, 255, 0.1);
  font-size: 8px;
  z-index: -1;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 5px;
  animation: uraWorldMatrix 4s linear infinite;
  pointer-events: none;
}

/* グリッチ＆トランジション（クラス名は既存に揃える） */
#hamberger-btn.ura-world-btn.glitch { animation: uraWorldGlitch 0.3s linear; }
#hamberger-btn.transitioning-to-ura { animation: buttonFlipTransition 0.8s ease-in-out; }

/* レスポンシブ微調整（行間・文字サイズを控えめに） */
@media (max-width: 820px) {
  #hamberger-btn.ura-world-btn::after { font-size: 6px; letter-spacing: 3px; }
}
@media (max-width: 550px) {
  #hamberger-btn.ura-world-btn::after { font-size: 4px; letter-spacing: 2px; }
}



/* 確認ダイアログ　js/ura/confirm-dialog.js */
.ura-confirm {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.4);
  z-index: 10000;
}
.ura-confirm__panel {
  min-width: 260px;
  max-width: 90vw;
  background: #111;
  color: #eee;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.ura-confirm__msg { margin: 0 0 12px; line-height: 1.6; }
.ura-confirm__btns { display: flex; gap: 8px; justify-content: flex-end; }
.ura-confirm__btns button {
  padding: 8px 14px; border-radius: 8px; border: 0; cursor: pointer;
}
.ura-confirm__yes { background: #00c853; color: #fff; }
.ura-confirm__no  { background: #444; color: #fff; }

/* トグル行（共通） */
.ura-confirm__option {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  background: #171717; border: 1px solid #2b2b2b; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
}
.ura-snd__label,
.ura-trn__label { font-size: 0.95rem; }
.ura-confirm__chk { display: none; }

/* iOS風トグル */
.ura-confirm__toggle {
  width: 46px; height: 26px; border-radius: 26px; position: relative;
  background: #444; box-shadow: inset 0 0 0 2px #333; transition: background .2s ease;
  display: inline-block;
}
.ura-confirm__toggle i {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #ddd; transition: transform .2s ease, background .2s ease;
}
.ura-confirm__chk:checked + span + .ura-confirm__toggle {
  background: #00c853; box-shadow: none;
}
.ura-confirm__chk:checked + span + .ura-confirm__toggle i {
  transform: translateX(20px); background: #fff;
}

/* navigation-confirm 用：中央ぞろえメッセージ */
.ura-confirm__msg--center {
  text-align: center;
  /* font-weight: 700; */
  font-size: 1.2em;
}

/* 裏世界遷移演出 /js/ura/transition.js */


/* 既存の演出クラス（任意） */
.entry-btn.transitioning-to-ura { filter: saturate(0.6) brightness(1.1); }
.entry-btn.glitch { animation: ura-glitch 0.3s linear 1; }
@keyframes ura-glitch {
  0% { transform: translate(0, 0) }
  35% { transform: translate(-1px, 0.5px) }
  70% { transform: translate(1px, -0.5px) }
  100% { transform: translate(0, 0) }
}

/* クリック多重防止の見た目（任意） */
[aria-disabled="true"] { pointer-events: none; opacity: .7; }


/* フェード用オーバーレイ */
#ura-fade-overlay {
  position: fixed; inset: 0;
  background: #000; opacity: 0; pointer-events: none;
  z-index: 9999;
}



.entry-btn.transitioning-to-ura { filter: saturate(0.6) brightness(1.1); }
.entry-btn.glitch { animation: ura-glitch 0.3s linear 1; }
@keyframes ura-glitch {
  0% { transform: translate(0, 0) }
  35% { transform: translate(-1px, 0.5px) }
  70% { transform: translate(1px, -0.5px) }
  100% { transform: translate(0, 0) }
}
[aria-disabled="true"] { pointer-events: none; opacity: .7; }

/* 暗転上のテキストレイヤ */
#ura-fade-overlay .ura-text-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 4vh 6vw;
}

/* 各行の見た目 */
#ura-fade-overlay .ura-line {
  position: absolute;
  max-width: 90vw;
  color: #e6f7ff;
  text-align: center;
  font-weight: 700;
  letter-spacing: .02em;
  /* 画面サイズに応じて少し大きく */
  font-size: clamp(16px, 3.2vw, 28px);
  text-shadow:
    0 0 12px rgba(0, 200, 255, .25),
    0 0 26px rgba(0, 160, 255, .20);
  opacity: 0;
}

/* ぶうぁっと出る感じ：拡大＋ブラー解除＋アルファ */
#ura-fade-overlay .ura-line.burst {
  animation:
    ura-burst-in 360ms cubic-bezier(.2,.8,.2,1) both,
    ura-hold 900ms linear 360ms both;
}

/* フェードアウト */
#ura-fade-overlay .ura-line.fadeout {
  animation: ura-fade-out 240ms ease both;
}

/* キーフレーム */
@keyframes ura-burst-in {
  0%   { opacity: 0; transform: scale(.86); filter: blur(8px); letter-spacing: .08em; }
  60%  { opacity: 1; transform: scale(1.02); filter: blur(1.5px); letter-spacing: .01em; }
  100% { opacity: 1; transform: scale(1); filter: blur(0); letter-spacing: .02em; }
}
@keyframes ura-hold {
  from { opacity: 1; }
  to   { opacity: 1; }
}
@keyframes ura-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(6px); }
}



/* 裏世界 → 表世界への“天界ゲート”ボタン */
/* .ura-exit-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999; */

.ura-exit-btn {
  /* パネル内レイアウトに従わせるため fixed を解除 */
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;

  /* レイアウト */
  padding: 10px 20px 10px 44px; /* 左にゲートアイコン分の余白 */
  min-width: 180px;
  box-sizing: border-box;

  /* フォント */
  font-family: "Meiryo", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fffdf5;

  /* 背景：暗闇の中に浮かぶ光のゲート感 */
  background: radial-gradient(circle at 10% 0%,
              rgba(255, 255, 255, 0.18) 0,
              rgba(255, 255, 255, 0.03) 40%,
              rgba(0, 0, 0, 0.9) 100%);
  border-radius: 999px;
  border: 1px solid rgba(255, 245, 200, 0.8);

  /* 光のにじみ */
  box-shadow:
    0 0 8px rgba(255, 240, 180, 0.7),
    0 0 18px rgba(255, 220, 140, 0.6),
    0 0 32px rgba(200, 180, 255, 0.45);

  cursor: pointer;
  opacity: 0.95;
  backdrop-filter: blur(6px);

  /* アニメーション・インタラクション */
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease,
    background 0.25s ease;
}

/* 左側に “光の門” のアイコンを擬似要素で描画 */
.ura-exit-btn::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);

  width: 22px;
  height: 22px;
  border-radius: 50%;

  /* 内側の光るリング（ゲート） */
  box-shadow:
    0 0 6px rgba(255, 250, 215, 0.9),
    0 0 16px rgba(255, 240, 190, 0.8);

  background:
    radial-gradient(circle,
      rgba(255, 255, 255, 0.95) 0,
      rgba(255, 244, 210, 0.8) 40%,
      rgba(255, 215, 140, 0.0) 60%);

  /* ゆっくり脈動する光 */
  animation: uraExitHalo 2.4s ease-in-out infinite;
}

/* 内側に縦の光柱っぽいライン */
.ura-exit-btn::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.0),
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.0)
  );
  opacity: 0.9;
}

/* ホバー時：門がこちら側へ少し近づいてくる */
.ura-exit-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow:
    0 0 10px rgba(255, 245, 210, 0.9),
    0 0 24px rgba(255, 230, 160, 0.9),
    0 0 40px rgba(210, 190, 255, 0.7);
  background: radial-gradient(circle at 15% 0%,
              rgba(255, 255, 255, 0.28) 0,
              rgba(255, 255, 255, 0.05) 40%,
              rgba(0, 0, 0, 0.9) 100%);
}

/* クリック時：少し沈んで光が落ち着く */
.ura-exit-btn:active {
  transform: translateY(0);
  opacity: 0.88;
  box-shadow:
    0 0 6px rgba(255, 240, 200, 0.7),
    0 0 16px rgba(220, 200, 255, 0.5);
}

/* “天界ゲート”の淡い脈動アニメーション */
@keyframes uraExitHalo {
  0% {
    transform: translateY(-50%) scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) scale(0.96);
    opacity: 0.8;
  }
}

/* ポイント集計フローティングアイコン */
.dbsheet-point-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(37, 248, 242, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    user-select: none;
}

.dbsheet-point-fab:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(37, 248, 242, 0.4);
}

.dbsheet-point-fab img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    border-radius: 50%;
}

/* 
---------------------------------------------------------------------------------
ポイントバッジ
*/
/* DBSheet ポイント集計システム CSS */
/* main.cssに追加してください */

/* ポイント集計フローティングアイコン */
.dbsheet-point-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(37, 248, 242, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    user-select: none;
    overflow: visible;
}

.dbsheet-point-fab:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(37, 248, 242, 0.4);
}

.dbsheet-point-fab img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

/* ポイントバッジ */
.dbsheet-point-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: var(--color-white);
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    overflow: visible;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: pointBadgePulse 2s infinite ease-in-out;
    z-index: 10000;
    border: 2px solid rgba(0, 0, 0, 0.8);
}

/* バッジのパルスアニメーション */
@keyframes pointBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ポイント獲得時のエフェクト */
.dbsheet-point-fab.point-gained {
    animation: pointGainEffect 0.6s ease-out;
}

@keyframes pointGainEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); box-shadow: 0 0 20px rgba(37, 248, 242, 0.8); }
    100% { transform: scale(1); }
}

/* ポイント最大時のエフェクト */
.dbsheet-point-fab.max-points {
    animation: maxPointsGlow 2s infinite ease-in-out;
}

@keyframes maxPointsGlow {
    0%, 100% { 
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 0 0 2px rgba(255, 215, 0, 0.5);
    }
    50% { 
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.2),
            0 0 0 4px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6);
    }
}

/* 最大ポイント時のバッジ色変更 */
.dbsheet-point-badge.max-points {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #000;
}

/* ポイント獲得エフェクト（飛び散るパーティクル用） */
.point-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #25f8f2;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    animation: particleFloat 1s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-50px);
    }
}

/* 裏世界モード対応 */
.ura .dbsheet-point-fab {
    background: rgba(7, 13, 24, 0.8);
    box-shadow: 
        0 4px 12px rgba(37, 248, 242, 0.3),
        0 0 0 2px var(--primary-300);
}

.ura .dbsheet-point-fab:hover {
    box-shadow: 
        0 6px 20px rgba(37, 248, 242, 0.5),
        0 0 0 3px var(--primary-300);
}


/* ================================
   裏世界コントロールパネル（共通）
   ================================ */

/* デフォルト（表世界）は非表示 */
.ura-control-panel {
  display: none;
}

/* 裏世界時のみ表示 */
html.ura .ura-control-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;

  display: flex;
  flex-direction: column;       /* モバイル基準：縦レイアウト */
  align-items: stretch;
  gap: 8px;

  padding: 10px 14px;
  box-sizing: border-box;

  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at top left,
              rgba(255,255,255,0.10),
              rgba(0,0,0,0.75));
  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.6),
    0 0 26px rgba(37, 248, 242, 0.35);
  backdrop-filter: blur(10px);
}

/* アイコン行（設定 / ポイント） */
.ura-control-panel__icons {
  display: flex;
  align-items: center;
  justify-content: space-evenly;  /* モバイル：均等配置 */
  gap: 8px;
}

/* 戻るボタン用スロット */
.ura-control-panel__back-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================
   アイコン類（設定 / ポイント）
   ================================ */

/* 裏設定アイコンのベース（ポイントFABとほぼ共通レイアウト） */
.ura-settings-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  padding: 0;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(7, 13, 24, 0.9);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(37, 248, 242, 0.35);

  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ura-settings-fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.7),
    0 0 0 3px rgba(37, 248, 242, 0.5);
}

/* パネル内のポイントFABは「固定配置」を解除してパネルレイアウトに従わせる */
/* .ura-control-panel .dbsheet-point-fab {
  position: static; */

.ura-control-panel .dbsheet-point-fab {
  position: relative;

  right: auto;
  bottom: auto;
  margin: 0;

  width: 56px;
  height: 56px;
}

/* ================================
   PCレイアウト（横並び）
   ================================ */

@media (min-width: 768px) {
  html.ura .ura-control-panel {
    flex-direction: row;      /* PC：横レイアウト */
    align-items: center;
  }

  .ura-control-panel__icons {
    order: 0;
    justify-content: flex-start;
  }

  .ura-control-panel__back-slot {
    order: 1;
    margin-left: 10px;
    justify-content: flex-end;
  }
}


/* 特別文字機能 */

/* 特定文字のスタイル（修正版） */
.special-word {
    cursor: pointer;
    text-shadow: none; /* 平常時は光らない */
    animation: autoGlow 4s infinite; /* 4秒間隔に変更 */
}

/* 4秒間隔で自動的に光るアニメーション */
@keyframes autoGlow {
    0% {
        text-shadow: none; /* 光らない状態 */
    }
    10% {
        text-shadow: 
            0 0 8px #00bcd4
            ,0 0 16px #00bcd4
            ,0 0 24px #00bcd4
            ,0 0 32px #00bcd4
			,0 0 40px #00bcd4
			,0 0 48px #00bcd4
			,0 0 56px #00bcd4
			;
    }
    20% {
        text-shadow: none; /* 光らない状態に戻る */
    }
    100% {
        text-shadow: none; /* 光らない状態を維持 */
    }
}

/* ホバー時に定期エフェクトと同じグローエフェクト */
.special-word:hover {
    /* text-shadow: 
        0 0 8px #00bcd4,
        0 0 16px #00bcd4,
        0 0 24px #00bcd4,
        0 0 32px #00bcd4; */
	background: rgba(0, 179, 179, 0.13);
}

/* ★ クリック済みのスタイル（光らない・色が変わるなど） */
.special-word.clicked {
    animation: none; /* 自動光り停止 */
    text-shadow: none !important;
    background: rgba(0, 255, 170, 0.25); /* クリック済みの視覚差 */
    border-radius: 3px;
}

/* ▼ ラベルチップ（裏実績・ようこそページ共通で使える汎用ラベル） ▼ */
.label-chip {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 8px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.12em;
  background-color: var(--primary-50);
  color: var(--text-emphasis);
}

/* ▼ 裏世界ポイント実績カード ▼ */

/* .ura-confirm をオーバーレイとして流用し、中身のカードだけ調整 */
.ura-achievement-card {
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: 80vh;
  margin: 0 auto;
  overflow-y: auto;
  padding: 24px 20px;
  position: relative;
}

/* ヘッダー周り */
.ura-achievement-header .section-title {
  margin-bottom: 8px;
}

.ura-achievement-header .message {
  font-size: 16px;
  line-height: 1.8;
}

/* 進捗ブロック */
.ura-achievement-progress {
  margin-top: 16px;
  margin-bottom: 20px;
}

.ura-achievement-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  margin-bottom: 6px;
}

.ura-achievement-progress-value {
  font-weight: 600;
  color: var(--text-emphasis);
}

.ura-achievement-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--color-white-25);
  overflow: hidden;
}

.ura-achievement-bar-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--primary-300),
    var(--color-accent-cyan)
  );
  box-shadow: 0 0 12px var(--color-glow-blue-80);
  transition: width 0.4s ease-out;
}

.ura-achievement-note {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
}

/* 特別文字用のミニメーターブロック */
.ura-achievement-special-progress {
  margin-top: 8px;
}

/* 実績リスト */
.ura-achievement-list-wrapper {
  margin-top: 12px;
}

.ura-achievement-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.ura-achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.ura-achievement-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--color-white-95);
  border: 1px solid var(--color-white-40);
}

/* 裏世界時はダークカードに自動で寄るよう補正 */
html.ura .ura-achievement-item {
  background: rgba(7, 13, 24, 0.9);
  border-color: rgba(37, 248, 242, 0.25);
}

.ura-achievement-status {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--color-white-40);
  text-align: center;
  white-space: nowrap;
}

.ura-achievement-body {
  font-size: 13px;
}

.ura-achievement-title {
  font-size: 13px;
  margin-bottom: 2px;
  font-weight: 600;
  color: var(--text-dark);
}

html.ura .ura-achievement-title {
  color: var(--primary-300);
}

.ura-achievement-desc {
  font-size: 12px;
  opacity: 0.85;
}

/* クリア状態の装飾（共通） */
.ura-achievement-item.is-cleared {
  border-color: var(--primary-300);
  box-shadow: 0 0 16px var(--color-light-blue-40);
}

.ura-achievement-item.is-cleared .ura-achievement-status {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--text-emphasis);
}


/* 右上バッテンボタン */
.ura-achievement-close-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: var(--color-white-95);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ura-achievement-close-icon:hover {
  background: var(--color-white);
  transform: translateY(-1px);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

html.ura .ura-achievement-close-icon {
  background: rgba(7, 13, 24, 0.96);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(37, 248, 242, 0.35);
}

html.ura .ura-achievement-close-icon:hover {
  background: rgba(12, 20, 40, 0.98);
}

/* 全実績コンプだけ、少しだけ派手に */
.ura-achievement-item--all.is-cleared {
  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.22), transparent 55%),
    rgba(10, 8, 0, 0.96);
  border-color: rgba(255, 230, 150, 0.9);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.6);
}

/* 特別実績（合格基準など）：より金色に・ボタンっぽく・常時うっすら輝く */
.ura-achievement-item--all.is-cleared {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at top, rgba(255, 236, 179, 0.45), transparent 55%),
    radial-gradient(circle at bottom, rgba(255, 193, 7, 0.30), transparent 60%),
    rgba(10, 8, 0, 0.98);
  border-color: rgba(255, 230, 150, 0.95);
  box-shadow:
    0 0 24px rgba(255, 215, 0, 0.75),
    0 0 60px rgba(255, 213, 79, 0.45);
  transform: translateY(0);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background 0.4s ease-out;
  animation: uraGoldenPulse 2.4s ease-in-out infinite alternate;
}

/* 内側からゆっくり脈打つような黄金グロー */
@keyframes uraGoldenPulse {
  0% {
    box-shadow:
      0 0 18px rgba(255, 215, 0, 0.6),
      0 0 40px rgba(255, 213, 79, 0.35);
    background-position: 0% 0%;
  }
  100% {
    box-shadow:
      0 0 30px rgba(255, 241, 118, 0.95),
      0 0 70px rgba(255, 213, 79, 0.70);
    background-position: 100% 100%;
  }
}

/* 表面にうっすら走るハイライト（クリックできそうな演出強化） */
.ura-achievement-item--all.is-cleared::before {
 content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.0),
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.0)
  );
  opacity: 0.18;
  mix-blend-mode: screen;
  animation: uraGoldenRotate 7s linear infinite;
  pointer-events: none;
}

@keyframes uraGoldenRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ホバー時：ボタンのように少し浮き上がる＆輝きアップ */
.ura-achievement-item--all.is-cleared:hover {
  transform: translateY(-1px) scale(1.015);
  box-shadow:
    0 6px 26px rgba(255, 235, 124, 0.95),
    0 0 80px rgba(255, 215, 0, 0.9);
}

/* キーボード操作でもボタン感が伝わるように */
.ura-achievement-item--all.is-cleared:focus-visible {
  outline: 2px solid rgba(255, 241, 118, 0.9);
  outline-offset: 3px;
  transform: translateY(-1px) scale(1.015);
  box-shadow:
    0 6px 26px rgba(255, 235, 124, 0.95),
    0 0 80px rgba(255, 215, 0, 0.9);
}

/* フッター（既存 .ura-exit-btn をボタンスタイルとして再利用） */
.ura-achievement-footer {
  margin-top: 18px;
  text-align: right;
}

/* モバイル調整 */
@media screen and (max-width: 767px) {
  .ura-achievement-card {
    padding: 18px 14px;
  }

  .ura-achievement-item {
    grid-template-columns: 1fr;
  }

  .ura-achievement-status {
    justify-self: flex-start;
    margin-bottom: 4px;
  }
}
/* 実績モーダル：初期状態では非表示にする */
.ura-achievement-overlay[aria-hidden="true"] {
  display: none;
}
.ura-achievement-overlay[aria-hidden="false"] {
 display: grid; /* .ura-confirm と同じレイアウトを継承させる */
}




/* クイズボタン用レイアウト */
.quiz-button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

/* クイズ：未選択時は自然に隠す */
.quiz-button-wrap.is-hidden{
  display: none;
}

.quiz-button {
    display: inline-block;
    padding: 10px 32px;
    margin: 12px auto 0;
    background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e, #0f0f23);
    background-size: 300% 300%;
    /* animation: uraWorldGradient 3s ease infinite; */
    border: 2px solid #00ffdd;
    box-shadow: 
        0 0 20px rgba(0, 247, 255, 0.5),
        0 0 40px rgba(0, 247, 255, 0.3),
        inset 0 0 20px rgba(0, 247, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 30px;
    text-align: center;
    color: #00ffee;
    text-shadow: 0 0 8px #00f6ff;
    font-weight: 600;
    font-size: 16px;
    width: fit-content;
}

.quiz-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(0, 247, 255, 0.7),
        0 0 60px rgba(0, 247, 255, 0.5),
        inset 0 0 30px rgba(0, 247, 255, 0.2);
    border-color: #00ffea;
}

   .page-title .label-chip {
        display: inline-block;
        padding: 6px 12px;
        margin-bottom: 8px;
        border-radius: 999px;
        font-size: 14px;
        letter-spacing: 0.12em;
        background-color: var(--primary-50);
        color: var(--text-emphasis);
      }

      .page-title .card-item .sub-message {
        font-size: 16px;
        opacity: 0.9;
      }

      .persona-note {
        font-size: 14px;
        opacity: 0.8;
      }

      .qualities .title span {
        display: block;
        font-size: 0.7em;
        opacity: 0.8;
        margin-top: 4px;
      }

      .cta-note {
        font-size: 16px;
        text-align: center;
        margin-top: 16px;
        opacity: 0.9;
      }

      .hero-kv-note {
        font-size: 14px;
        opacity: 0.75;
        text-align: center;
        margin-top: 8px;
      }

      /* ▼ このページ専用 ちょい足し ▼ */
      .quiz-answer-section {
        margin-top: 16px;
      }

      /* 自販機クイズ答え本文を、実績カード風の囲いにする */
      .quiz-answer-section .text-box {
        margin-top: 8px;
        padding: 12px 14px;
        border-radius: 10px;
        background: var(--color-white-95);
        border: 1px solid var(--color-white-40);
        box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
      }

      /* 裏世界時は実績カードと同様にダーク寄りのカードに補正 */
      html.ura .quiz-answer-section .text-box {
        background: rgba(7, 13, 24, 0.9);
        border-color: rgba(37, 248, 242, 0.25);
        box-shadow: 0 0 16px var(--color-light-blue-40);
      }
      .quiz-answer-section .quiz-label {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 12px;
        letter-spacing: 0.12em;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.18);
        margin-bottom: 8px;
      }

      .quiz-answer-section .quiz-question {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 12px;
      }

      .quiz-answer-section ol {
        padding-left: 1.4em;
        margin: 0 0 12px;
      }

      .quiz-answer-section li {
        margin-bottom: 4px;
      }

      .quiz-answer-section li span.step-label {
        font-weight: 600;
      }

      .quiz-answer-section li.is-wrong {
        background: rgba(255, 99, 132, 0.08);
        border-left: 3px solid #ff6384;
        padding: 4px 8px;
        margin-left: -8px;
        border-radius: 4px;
      }

      .quiz-answer-section .answer-highlight {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        background: #ff6384;
        color: #fff;
        font-size: 13px;
        margin-bottom: 8px;
      }

      .quiz-answer-section .explanation {
        margin-top: 8px;
        line-height: 1.7;
      }

      .quiz-answer-section .code-like {
        font-family: "DotGothic16", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 14px;
        background: rgba(0, 0, 0, 0.65);
        border-radius: 8px;
        padding: 10px 12px;
        margin-top: 12px;
        white-space: pre-line;
      }

      .quiz-answer-section .talent-message {
        margin-top: 20px;
        padding: 12px 14px;
        border-radius: 10px;
        background: radial-gradient(circle at top, rgba(80,255,200,0.28), transparent 60%);
        border: 1px solid rgba(80,255,200,0.4);
        font-size: 16px;
        text-align: center;
      }

      .quiz-answer-section .talent-message strong {
        font-size: 18px;
      }

      .quiz-answer-section .next-step-note {
        margin-top: 8px;
        font-size: 14px;
        opacity: 0.85;
        text-align: center;
      }

      /* ▼ クイズ答えモーダル専用：固定サイズの見出し（section-title 代替） */
      .quiz-fixed-title {
        font-size: 30px;        /* 画面サイズに依存しない程よい固定サイズ */
        font-weight: 700;
        line-height: 1.6;
        margin-bottom: 12px;
        color: var(--primary-300);
        text-align: left;
      }

      html.ura .quiz-fixed-title {
        color: var(--primary-300); /* 裏世界時も強調カラー維持 */
      }

/* --- URA QUIZ: choices UI ----------------------------------- */

.quiz-question{
  margin: 10px 0 10px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
}

.quiz-choices{
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.quiz-choice{
  width: 100%;
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(2px);

  font-size: 14px;
  line-height: 1.4;

  cursor: pointer;
  user-select: none;

  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.quiz-choice:hover{
  border-color: rgba(255,255,255,0.32);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.quiz-choice:active{
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
}

/* キーボード操作でも分かるように */
.quiz-choice:focus-visible{
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 2px;
}

/* 選択状態（JSで aria-pressed を true にする or クラス付与） */
.quiz-choice[aria-pressed="true"],
.quiz-choice.is-selected{
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 22px rgba(0,0,0,0.30);
}

/* 選択後に「答えを見る」を押させたい場合の視線誘導 */
.quiz-button-wrap{
  margin-top: 6px; /* 既存と被るなら調整 */
}

/* --- URA QUIZ: 結果帯（見出し右側） ------------------------- */
.quiz-chip-row{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px; /* 既存 label-chip の余白感を維持 */
}

/* row 化するので、個別の margin-bottom は 0 にしてズレを防ぐ */
.quiz-chip-row .label-chip{
  margin-bottom: 0;
}

/* 結果チップ：形は label-chip と同じ、色だけ変える */
.quiz-result-chip{
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.quiz-result-chip.is-correct{
  background: rgba(0, 200, 83, 0.92); /* 緑 */
  border-color: rgba(0, 200, 83, 0.95);
  box-shadow: 0 0 16px rgba(0, 200, 83, 0.35);
}
.quiz-result-chip.is-wrong{
  background: rgba(255, 68, 68, 0.92); /* 赤 */
  border-color: rgba(255, 68, 68, 0.95);
  box-shadow: 0 0 16px rgba(255, 68, 68, 0.35);
}
.quiz-result-chip.is-unselected{
  background: rgba(120, 120, 120, 0.72); /* 未選択 */
  border-color: rgba(160, 160, 160, 0.45);
  box-shadow: none;
}

/* 裏世界時は少しだけ発色を上げる */
html.ura .quiz-result-chip.is-correct{
  box-shadow: 0 0 18px rgba(0, 255, 140, 0.35);
}
html.ura .quiz-result-chip.is-wrong{
  box-shadow: 0 0 18px rgba(255, 90, 90, 0.35);
}

/* 裏面：画像を切り取らず全表示 */
.ura .ura-image-full {
  height: auto;
}

.ura .message-from-ceo .image.mobile.ura-image-full img {
  height: auto;
}

/* =================================
   URA INVITE モーダル（追加）
   既存 .ura-confirm / .card-item を流用
   ================================= */

.ura-invite-overlay[aria-hidden="true"] { display: none; }
.ura-invite-overlay[aria-hidden="false"] { display: grid; }

.ura-invite-card {
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: 86vh;
  margin: 0 auto;
  overflow-y: auto;
  padding: 24px 20px;
  position: relative;
}

/* 右上の閉じるボタン（実績の close-icon を踏襲） */
.ura-invite-close-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: var(--color-white-95);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ura-invite-close-icon:hover {
  background: var(--color-white);
  transform: translateY(-1px);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}
html.ura .ura-invite-close-icon {
  background: rgba(7, 13, 24, 0.96);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(37, 248, 242, 0.35);
}
html.ura .ura-invite-close-icon:hover {
  background: rgba(12, 20, 40, 0.98);
}

/* invite 内のセクション余白（既存の見た目を崩さない程度） */
.ura-invite-entry { margin-top: 14px; }
.ura-invite-links { margin-top: 18px; }

/* inviteモーダル内だけ page-title の“ページ用余白”を無効化 */
.ura-invite-card .page-title{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 念のため：見出し側にも余計な上余白がある場合 */
.ura-invite-card .section-title{
  margin-top: 8px; /* 0でもOK。見た目で調整 */
  margin-bottom: 3px;
}
