/* ============================================================
   りんかカードゲーム（りんかメモリー／りんかかくれんぼ）2026-09-26 作り直し
   - #rinka-games-app（.rinka-cg-arcade）の中だけに効く。ほかのページには影響しない。
   - 夜のカードテーブル：金のふちのカード裏・3Dでめくる・レアはホロ・コンボ・星3つ評価。
   - 絵文字を UI の記号に使わない（アイコンは assets/img/cardgames/icons/ と インラインSVG）。
   - スマホ縦持ち最優先（押す所は 44px 以上）・prefers-reduced-motion 対応。
   ============================================================ */

.rinka-cg-arcade {
  --cg-bg1: #2b1842;
  --cg-bg2: #152245;
  --cg-ink: #2b1d33;
  --cg-cream: #fff7ee;
  --cg-soft: rgba(255, 247, 238, 0.72);
  --cg-gold: #f7cf73;
  --cg-gold2: #e6a63c;
  --cg-pink: #ff8fbd;
  --cg-mint: #7fe6d2;
  --cg-red: #ff6b7d;
  --cg-line: rgba(255, 255, 255, 0.16);
  --cg-glass: rgba(255, 255, 255, 0.08);
  /* 2026-09-26 フォント見直し：ゲームの字は新作ゲーム（もぐもぐ/ゆきどけ/ぷるぷる）と同じ M PLUS Rounded 1c、数字と英字は Quicksand */
  --cg-font: 'M PLUS Rounded 1c', 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'BIZ UDPGothic', 'Meiryo', sans-serif;
  --cg-num: 'Quicksand', 'M PLUS Rounded 1c', 'Zen Maru Gothic', sans-serif;
  position: relative;
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 14px 20px;
  border-radius: 28px;
  color: var(--cg-cream);
  font-family: var(--cg-font);
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 12%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 62% 72%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1px 1px at 30% 88%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 90% 55%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(120% 70% at 50% -10%, rgba(255, 143, 189, 0.28), transparent 60%),
    radial-gradient(90% 60% at 100% 110%, rgba(127, 230, 210, 0.16), transparent 60%),
    linear-gradient(160deg, var(--cg-bg1), var(--cg-bg2));
  box-shadow: 0 18px 40px rgba(28, 16, 48, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.rinka-cg-arcade *,
.rinka-cg-arcade *::before,
.rinka-cg-arcade *::after { box-sizing: border-box; }
.rinka-cg-arcade [hidden] { display: none !important; }
/* サイト共通の舞台飾り（.rinka-fs-stage::after の星）はゲーム盤では出さない */
.rinka-cg-arcade.rinka-fs-stage::after,
.rinka-cg-arcade.rinka-fs-stage::before { display: none !important; content: none !important; }
.rinka-cg-arcade button { font-family: inherit; }
.rinka-cg-lead { margin: 0 0 20px; }

/* ---------- 小さなアイコン ---------- */
.cg-ico { width: 22px; height: 22px; flex: none; object-fit: contain; vertical-align: middle; }
.cg-ico--sm { width: 16px; height: 16px; }
.cg-ico--lg { width: 34px; height: 34px; }
.cg-svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ボタン ---------- */
.rinka-cg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 900; font-size: 15px; letter-spacing: 0.04em; color: #3a2408;
  background: linear-gradient(180deg, #ffe39a, var(--cg-gold) 45%, var(--cg-gold2));
  box-shadow: 0 4px 0 #a86b1c, 0 8px 18px rgba(247, 207, 115, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s;
}
.rinka-cg-btn:hover { filter: brightness(1.06); }
.rinka-cg-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a86b1c, 0 4px 10px rgba(247, 207, 115, 0.25); }
.rinka-cg-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rinka-cg-btn--ghost { color: var(--cg-cream); background: var(--cg-glass); box-shadow: inset 0 0 0 1.5px var(--cg-line); }
.rinka-cg-btn--ghost:active { transform: translateY(1px); box-shadow: inset 0 0 0 1.5px var(--cg-line); }
.rinka-cg-btn:disabled { opacity: 0.45; cursor: default; filter: grayscale(0.4); }
.cg-iconbtn {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0; cursor: pointer; color: var(--cg-cream);
  background: var(--cg-glass); box-shadow: inset 0 0 0 1.5px var(--cg-line);
}
.cg-iconbtn .cg-svg { width: 20px; height: 20px; }
.cg-iconbtn:active { transform: scale(0.94); }
.cg-iconbtn:focus-visible { outline: 3px solid var(--cg-gold); outline-offset: 2px; }
.rinka-cg-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }

/* ---------- ゲート（持っていないとき） ---------- */
.rinka-cg-gate:empty { display: none; }
.rinka-cg-empty { text-align: center; padding: 28px 12px; }
.rinka-cg-empty__msg { color: var(--cg-soft); line-height: 1.8; margin: 0 auto 16px; max-width: 30em; }
.rinka-cg-empty__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- ハブ：ゲームを選ぶ ---------- */
.cg-hubhead { text-align: center; margin: 2px 0 14px; }
.cg-hubhead__eyebrow { font-family: var(--cg-num); font-weight: 700; letter-spacing: 0.32em; font-size: 11px; color: var(--cg-gold); }
.cg-hubhead__title { margin: 4px 0 0; font-size: 22px; font-weight: 900; letter-spacing: 0.06em; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.rinka-cg-picker { display: grid; gap: 14px; }
@media (min-width: 620px) { .rinka-cg-picker { grid-template-columns: 1fr 1fr; } }
.rinka-cg-choice {
  position: relative; display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 14px;
  width: 100%; text-align: left; padding: 14px; border: 0; border-radius: 22px; cursor: pointer; color: var(--cg-cream);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1.5px var(--cg-line), 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.rinka-cg-choice::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.7s ease;
}
.rinka-cg-choice:hover::after { transform: translateX(120%); }
.rinka-cg-choice:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(247, 207, 115, 0.55), 0 14px 28px rgba(0, 0, 0, 0.28); }
.rinka-cg-choice:active { transform: scale(0.98); }
.rinka-cg-choice:focus-visible { outline: 3px solid var(--cg-gold); outline-offset: 2px; }
.rinka-cg-choice__body { min-width: 0; }
.rinka-cg-choice__name { display: block; font-size: 19px; font-weight: 900; letter-spacing: 0.04em; }
.rinka-cg-choice__sub { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.55; color: var(--cg-soft); }
.rinka-cg-choice__stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rinka-cg-choice__stats:empty { display: none; }
.rinka-cg-choice__go {
  position: absolute; right: 12px; top: 12px; font-family: var(--cg-num); font-weight: 700; font-size: 11px; letter-spacing: 0.14em;
  color: #3a2408; background: var(--cg-gold); border-radius: 999px; padding: 3px 9px;
}
.rinka-cg-choice.is-locked { cursor: default; filter: saturate(0.4); }
.rinka-cg-choice.is-locked .rinka-cg-choice__go { display: none; }
.rinka-cg-choice__lock {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  color: var(--cg-cream); background: rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 8px 10px;
}
/* ハブの小さな絵：カードの扇（メモリー）／カード3枚と虫めがね（かくれんぼ） */
.cg-art { position: relative; height: 104px; }
.cg-art__card {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 70px; margin: -35px 0 0 -26px;
  border-radius: 8px; border: 2px solid var(--cg-gold); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 9px),
    linear-gradient(145deg, #ff9ec8, #b86ad8 55%, #6d5ad8);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.cg-art__card .cg-emblem { width: 60%; }
.cg-art--mem .cg-art__card:nth-child(1) { transform: translateX(-24px) rotate(-16deg); }
.cg-art--mem .cg-art__card:nth-child(2) { transform: translateY(-6px); z-index: 1; }
.cg-art--mem .cg-art__card:nth-child(3) { transform: translateX(24px) rotate(16deg); border-color: #fff; background: #fbe6ef; }
.cg-art__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.cg-art--seek .cg-art__card { width: 40px; height: 54px; margin: -27px 0 0 -20px; }
.cg-art--seek .cg-art__card:nth-child(1) { animation: cg-hub-a 3.2s ease-in-out infinite; }
.cg-art--seek .cg-art__card:nth-child(2) { transform: translateX(0); }
.cg-art--seek .cg-art__card:nth-child(3) { animation: cg-hub-b 3.2s ease-in-out infinite; }
.cg-art__lens { position: absolute; right: 0; bottom: 0; width: 42px; height: 42px; z-index: 2; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
@keyframes cg-hub-a { 0%, 30% { transform: translateX(-34px); } 45% { transform: translate(0, -16px); } 60%, 100% { transform: translateX(34px); } }
@keyframes cg-hub-b { 0%, 30% { transform: translateX(34px); } 45% { transform: translate(0, 16px); } 60%, 100% { transform: translateX(-34px); } }

/* ---------- 共通：ゲーム画面の上の帯 ---------- */
.cg-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cg-top__title { flex: 1; min-width: 0; }
.cg-top__title b { display: block; font-size: 18px; font-weight: 900; letter-spacing: 0.05em; line-height: 1.25; }
.cg-top__title small { display: block; font-size: 11.5px; color: var(--cg-soft); margin-top: 2px; }
.cg-hud { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.cg-chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px 11px; border-radius: 999px;
  font-family: var(--cg-num); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums;
  background: var(--cg-glass); box-shadow: inset 0 0 0 1px var(--cg-line); white-space: nowrap;
}
.cg-chip small { font-family: var(--cg-font); font-weight: 700; font-size: 11px; color: var(--cg-soft); }
.cg-chip--gold { color: #3a2408; background: linear-gradient(180deg, #ffe7a6, var(--cg-gold)); box-shadow: none; }
.cg-chip--gold small { color: #6b4814; }
.cg-chip.is-bump { animation: cg-bump 0.35s ease; }
@keyframes cg-bump { 40% { transform: scale(1.16); } }
.cg-bar { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-bottom: 12px; }
.cg-bar > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cg-pink), var(--cg-gold)); transition: width 0.45s cubic-bezier(0.3, 1.3, 0.5, 1); }

/* りんかのふきだし（アイコンは 今日のりんか のカード） */
.rinka-cg-bubble { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 52px; }
.cg-avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; background: #fbe6ef;
  box-shadow: 0 0 0 2.5px var(--cg-gold), 0 4px 10px rgba(0, 0, 0, 0.3);
}
.cg-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.cg-say {
  position: relative; flex: 1; min-width: 0; padding: 9px 13px; border-radius: 16px; font-size: 14px; font-weight: 700; line-height: 1.5;
  color: var(--cg-ink); background: var(--cg-cream); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.cg-say::before { content: ''; position: absolute; left: -7px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-left: 0; border-right-color: var(--cg-cream); }
.cg-say.is-new { animation: cg-say 0.32s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes cg-say { from { transform: scale(0.92); opacity: 0.4; } }

/* ---------- カード（裏＝金のふち、表＝絵） ---------- */
.rinka-cg-card { position: relative; perspective: 900px; cursor: pointer; outline: none; border-radius: 12px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.rinka-cg-card:focus-visible { box-shadow: 0 0 0 3px #fff; }
.rinka-cg-card__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.46s cubic-bezier(0.3, 1.35, 0.5, 1); }
.rinka-cg-card__inner.is-up { transform: rotateY(180deg); }
.rinka-cg-card__back,
.rinka-cg-card__front { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.rinka-cg-card__back {
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--cg-gold);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 11px),
    linear-gradient(150deg, #ff9ec8 0%, #c76fd8 50%, #6a57d6 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25), 0 6px 14px rgba(0, 0, 0, 0.3);
}
.rinka-cg-card__back::before {
  content: ''; position: absolute; inset: 5px; border-radius: 8px; border: 1px solid rgba(255, 238, 190, 0.7); pointer-events: none;
}
.rinka-cg-card__back::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.38) 50%, transparent 62%);
  transform: translateX(-130%);
}
.rinka-cg-card:hover .rinka-cg-card__back::after { transform: translateX(130%); transition: transform 0.65s ease; }
.cg-emblem { width: 46%; max-width: 64px; aspect-ratio: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.rinka-cg-card__front { transform: rotateY(180deg); background: #fbe6ef; border: 2.5px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); }
.rinka-cg-card__front img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; pointer-events: none; }
/* レア：ホロ */
.rinka-cg-card.r-sr .rinka-cg-card__front,
.rinka-cg-card.r-ssr .rinka-cg-card__front,
.rinka-cg-card.r-secret .rinka-cg-card__front,
.rinka-cg-card.r-medal .rinka-cg-card__front { border-color: var(--cg-gold); }
.rinka-cg-card.r-sr .rinka-cg-card__front::after,
.rinka-cg-card.r-ssr .rinka-cg-card__front::after,
.rinka-cg-card.r-secret .rinka-cg-card__front::after,
.rinka-cg-card.r-medal .rinka-cg-card__front::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0.35;
  background: linear-gradient(120deg, #ff9ec8, #ffe79a, #8ff3e0, #a99bff, #ff9ec8); background-size: 300% 300%;
  animation: cg-holo 5s linear infinite;
}
.rinka-cg-card.r-sr .rinka-cg-card__front::after { opacity: 0.2; }
@keyframes cg-holo { to { background-position: 300% 0; } }

/* 状態 */
.rinka-cg-card.is-open .rinka-cg-card__front { box-shadow: 0 0 0 3px var(--cg-cream), 0 10px 20px rgba(0, 0, 0, 0.35); }
.rinka-cg-card.is-matched { cursor: default; }
.rinka-cg-card.is-matched .rinka-cg-card__inner { animation: cg-match 0.55s cubic-bezier(0.3, 1.6, 0.5, 1); }
.rinka-cg-card.is-matched .rinka-cg-card__front { border-color: var(--cg-gold); box-shadow: 0 0 0 2px var(--cg-gold), 0 0 18px rgba(247, 207, 115, 0.55); }
.rinka-cg-card.is-matched.is-settled .rinka-cg-card__front { filter: saturate(0.85) brightness(0.9); box-shadow: 0 0 0 2px var(--cg-gold); }
.cg-check {
  position: absolute; right: -5px; top: -5px; width: 24px; height: 24px; z-index: 3; padding: 4px; border-radius: 50%;
  background: var(--cg-gold); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); animation: cg-pop 0.4s 0.2s both cubic-bezier(0.3, 1.8, 0.5, 1);
}
.cg-check .cg-svg { width: 16px; height: 16px; color: #3a2408; stroke-width: 3; }
@keyframes cg-match { 0% { transform: rotateY(180deg) scale(1); } 45% { transform: rotateY(180deg) scale(1.06); } 100% { transform: rotateY(180deg) scale(1); } }
@keyframes cg-pop { from { transform: scale(0); } }
.rinka-cg-card.is-wrong .rinka-cg-card__inner { animation: cg-shake 0.42s ease; }
.rinka-cg-card.is-wrong .rinka-cg-card__front { box-shadow: 0 0 0 3px var(--cg-red), 0 0 16px rgba(255, 107, 125, 0.6); }
@keyframes cg-shake { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
.rinka-cg-card.is-hint .rinka-cg-card__front { box-shadow: 0 0 0 3px var(--cg-mint), 0 0 18px rgba(127, 230, 210, 0.6); }

/* ---------- メモリーの盤面 ---------- */
.rinka-cg-board {
  position: relative; display: grid; gap: 8px;
  grid-template-columns: repeat(var(--cg-cols, 4), minmax(0, 1fr));
  padding: 10px; border-radius: 20px; background: rgba(0, 0, 0, 0.18); box-shadow: inset 0 0 0 1px var(--cg-line);
  transition: box-shadow 0.3s;
}
.rinka-cg-board .rinka-cg-card { aspect-ratio: 3 / 4; }
.rinka-cg-board.is-fever { box-shadow: inset 0 0 0 2px var(--cg-gold), 0 0 26px rgba(247, 207, 115, 0.45); animation: cg-fever 1.2s ease-in-out infinite alternate; }
@keyframes cg-fever { to { box-shadow: inset 0 0 0 2px var(--cg-pink), 0 0 34px rgba(255, 143, 189, 0.55); } }
.rinka-cg-board.is-dimmed .rinka-cg-card:not(.is-open):not(.is-wrong):not(.is-matched) { filter: brightness(0.6); }
.rinka-cg-card.is-preview .rinka-cg-card__inner { transition-duration: 0.6s; }
.rinka-cg-board.is-locked .rinka-cg-card { cursor: default; }

/* コンボの文字 */
.cg-combo {
  position: absolute; left: 50%; top: 42%; z-index: 20; pointer-events: none; white-space: nowrap;
  font-family: var(--cg-num); font-weight: 700; font-size: 34px; letter-spacing: 0.04em; color: #fff;
  text-shadow: 0 3px 0 #b24f86, 0 0 18px rgba(255, 143, 189, 0.9);
  transform: translate(-50%, -50%); animation: cg-combo 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
.cg-combo small { display: block; text-align: center; font-family: var(--cg-font); font-size: 13px; letter-spacing: 0.1em; color: var(--cg-gold); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
@keyframes cg-combo { 0% { opacity: 0; transform: translate(-50%, -30%) scale(0.5); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } 70% { opacity: 1; transform: translate(-50%, -55%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(0.96); } }

/* 光の粒 */
.cg-burst { position: absolute; z-index: 15; width: 0; height: 0; pointer-events: none; }
.cg-burst i {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c, var(--cg-gold)); box-shadow: 0 0 8px var(--c, var(--cg-gold));
  animation: cg-fly 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.cg-burst i.is-star { border-radius: 0; width: 12px; height: 12px; left: -6px; top: -6px; clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); }
@keyframes cg-fly { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }

/* 画面の上に出る大きな文字（おぼえてね／3・2・1／スタート） */
.cg-ov {
  position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  pointer-events: none; text-align: center;
}
.cg-ov__big {
  font-family: var(--cg-num); font-weight: 700; font-size: 72px; line-height: 1; color: #fff;
  text-shadow: 0 4px 0 #b24f86, 0 0 26px rgba(255, 143, 189, 0.85);
  animation: cg-count 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.cg-ov__big.is-go { font-family: var(--cg-font); font-weight: 900; font-size: 44px; color: var(--cg-gold); text-shadow: 0 4px 0 #8a4a10, 0 0 26px rgba(247, 207, 115, 0.8); }
.cg-ov__pill {
  font-size: 15px; font-weight: 900; padding: 8px 16px; border-radius: 999px; color: var(--cg-ink);
  background: var(--cg-cream); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); animation: cg-say 0.3s ease both;
}
@keyframes cg-count { 0% { opacity: 0; transform: scale(1.8); } 40% { opacity: 1; transform: scale(0.95); } 100% { transform: scale(1); } }
.cg-ring { position: relative; width: 40px; height: 40px; flex: none; }
.cg-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cg-ring circle { fill: none; stroke-width: 5; }
.cg-ring .bg { stroke: rgba(43, 29, 51, 0.15); }
.cg-ring .fg { stroke: var(--cg-pink); stroke-linecap: round; }
.cg-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--cg-num); font-size: 15px; color: var(--cg-ink); }

/* ---------- 難易度をえらぶ ---------- */
.cg-daily {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(247, 207, 115, 0.2), rgba(255, 143, 189, 0.14)); box-shadow: inset 0 0 0 1px rgba(247, 207, 115, 0.45);
}
.cg-daily__txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; }
.cg-daily__txt b { display: block; font-size: 11px; letter-spacing: 0.14em; color: var(--cg-gold); }
.cg-daily.is-done { background: linear-gradient(135deg, rgba(127, 230, 210, 0.22), rgba(127, 230, 210, 0.08)); box-shadow: inset 0 0 0 1px rgba(127, 230, 210, 0.5); }
.cg-stamp {
  flex: none; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; color: #0f4d42; background: var(--cg-mint);
  border-radius: 8px; padding: 5px 8px; transform: rotate(-6deg); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.rinka-cg-reward-left { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--cg-soft); margin: 0 0 10px; }
.rinka-cg-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 620px) { .rinka-cg-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rinka-cg-tier {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 96px; padding: 12px;
  border: 0; border-radius: 18px; cursor: pointer; text-align: left; color: var(--cg-cream);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 0 0 1.5px var(--cg-line), 0 6px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s;
}
.rinka-cg-tier:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(247, 207, 115, 0.6), 0 10px 20px rgba(0, 0, 0, 0.26); }
.rinka-cg-tier:active:not(:disabled) { transform: scale(0.97); }
.rinka-cg-tier:focus-visible { outline: 3px solid var(--cg-gold); outline-offset: 2px; }
.rinka-cg-tier__name { font-size: 16px; font-weight: 900; letter-spacing: 0.04em; }
.rinka-cg-tier__sub { font-size: 11.5px; color: var(--cg-soft); }
.rinka-cg-tier__best { margin-top: auto; font-family: var(--cg-num); font-size: 11.5px; font-weight: 700; color: var(--cg-gold); }
.rinka-cg-tier__lock { display: flex; align-items: center; gap: 5px; margin-top: auto; font-size: 11.5px; font-weight: 700; color: var(--cg-soft); }
.rinka-cg-tier.is-locked { cursor: default; opacity: 0.55; }
.rinka-cg-tier.is-practice { background: rgba(255, 255, 255, 0.05); }
.cg-stars { display: inline-flex; gap: 2px; }
.cg-star { width: 15px; height: 15px; }
.cg-star path { fill: rgba(255, 255, 255, 0.2); }
.cg-star.is-on path { fill: var(--cg-gold); }
.rinka-cg-tier .cg-stars { position: absolute; right: 10px; top: 12px; }

/* レアだけで あそぶ */
.rinka-cg-rarity { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.rinka-cg-rarity__lead { font-size: 12px; font-weight: 700; color: var(--cg-soft); margin-right: 2px; }
.rinka-cg-rarity__chip {
  display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 13px; color: var(--cg-cream); background: var(--cg-glass); box-shadow: inset 0 0 0 1px var(--cg-line);
}
.rinka-cg-rarity__chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rc, rgba(255, 255, 255, 0.5)); }
.rinka-cg-rarity__chip.r-r { --rc: #8fd0ff; }
.rinka-cg-rarity__chip.r-sr { --rc: #ffcf6e; }
.rinka-cg-rarity__chip.r-ssr { --rc: #ff8fbd; }
.rinka-cg-rarity__chip.r-secret { --rc: #b59bff; }
.rinka-cg-rarity__chip.r-medal { --rc: #7fe6d2; }
.rinka-cg-rarity__cnt { font-family: var(--cg-num); font-size: 11px; opacity: 0.7; }
.rinka-cg-rarity__chip.is-active { color: var(--cg-ink); background: var(--cg-cream); box-shadow: none; }
.rinka-cg-panel.is-rare .cg-top__title b { color: var(--cg-gold); }

/* ---------- かくれんぼの盤面 ---------- */
.rinka-cg-stage-bg { position: relative; padding: 12px; border-radius: 20px; background: rgba(0, 0, 0, 0.18); box-shadow: inset 0 0 0 1px var(--cg-line); }
.rinka-cg-stage { position: relative; width: 100%; margin: 0 auto; }
.rinka-cg-stage .rinka-cg-card--seek { position: absolute; top: 0; left: 0; will-change: transform; }
.rinka-cg-stage.is-memorizing .rinka-cg-card--seek:not(.is-target) { filter: brightness(0.45) saturate(0.5); transition: filter 0.3s; }
.rinka-cg-card.is-target { z-index: 5; }
.rinka-cg-card.is-target .rinka-cg-card__inner { animation: cg-lift 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) forwards; }
.rinka-cg-card.is-target .rinka-cg-card__front { box-shadow: 0 0 0 3px var(--cg-gold), 0 0 26px rgba(247, 207, 115, 0.8); }
@keyframes cg-lift { to { transform: rotateY(180deg) scale(1.08) translateY(-4px); } }
.rinka-cg-stage.is-shuffling .rinka-cg-card--seek { cursor: default; }
.rinka-cg-stage.is-shuffling .rinka-cg-card__back { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25), 0 10px 18px rgba(0, 0, 0, 0.4); }
.rinka-cg-stage.is-dimmed { filter: brightness(0.82); }
.rinka-cg-stage.is-answerable .rinka-cg-card--seek:hover .rinka-cg-card__back { box-shadow: 0 0 0 3px var(--cg-cream), 0 0 20px rgba(255, 255, 255, 0.45); }
.rinka-cg-stage.is-answerable .rinka-cg-card--seek .rinka-cg-card__back { animation: cg-wait 1.6s ease-in-out infinite; }
@keyframes cg-wait { 50% { filter: brightness(1.14); } }
.rinka-cg-card.is-correct .rinka-cg-card__front { box-shadow: 0 0 0 4px var(--cg-mint), 0 0 26px rgba(127, 230, 210, 0.9); }
.rinka-cg-card.is-answer:not(.is-correct) .rinka-cg-card__front { box-shadow: 0 0 0 4px var(--cg-gold), 0 0 22px rgba(247, 207, 115, 0.85); }
.cg-here {
  position: absolute; left: 50%; top: -12px; z-index: 6; transform: translateX(-50%);
  font-size: 11px; font-weight: 900; white-space: nowrap; color: #3a2408; background: var(--cg-gold); border-radius: 999px; padding: 2px 8px;
  animation: cg-pop 0.35s cubic-bezier(0.3, 1.8, 0.5, 1) both;
}
.rinka-cg-card.is-miss .rinka-cg-card__front { filter: grayscale(0.5) brightness(0.8); }
.rinka-cg-card.is-miss .rinka-cg-card__inner { animation: cg-shake 0.42s ease; }
.rinka-cg-slotnum {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; min-width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--cg-num); font-weight: 700; color: var(--cg-ink); background: var(--cg-cream);
}
/* おぼえるりんか（盤面の上に小さく） */
.rinka-cg-target {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px 12px 8px 8px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(247, 207, 115, 0.28), rgba(255, 143, 189, 0.18)); box-shadow: inset 0 0 0 1.5px rgba(247, 207, 115, 0.6);
  animation: cg-say 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.rinka-cg-target__card { width: 42px; height: 56px; flex: none; border-radius: 8px; overflow: hidden; border: 2px solid var(--cg-gold); }
.rinka-cg-target__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.rinka-cg-target__label { display: block; font-size: 11px; letter-spacing: 0.12em; font-weight: 900; color: var(--cg-gold); }
.rinka-cg-target__name { display: block; font-size: 15px; font-weight: 900; }
.rinka-cg-target .cg-ring { margin-left: auto; }
.rinka-cg-target .cg-ring .bg { stroke: rgba(255, 255, 255, 0.2); }
.rinka-cg-target .cg-ring .fg { stroke: var(--cg-gold); }
.rinka-cg-target .cg-ring b { color: var(--cg-cream); }
/* ラウンドの点 */
.cg-dots { display: inline-flex; gap: 6px; align-items: center; }
.cg-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1.5px var(--cg-line); }
.cg-dots i.is-now { background: var(--cg-cream); animation: cg-now 1s ease-in-out infinite alternate; }
.cg-dots i.is-hit { background: var(--cg-mint); box-shadow: 0 0 8px rgba(127, 230, 210, 0.7); }
.cg-dots i.is-miss { background: var(--cg-red); }
@keyframes cg-now { to { transform: scale(1.25); } }
.cg-stampbig {
  position: absolute; left: 50%; top: 50%; z-index: 22; pointer-events: none; transform: translate(-50%, -50%) rotate(-8deg);
  font-size: 30px; font-weight: 900; letter-spacing: 0.06em; padding: 8px 20px; border-radius: 14px; white-space: nowrap;
  color: #0f4d42; background: var(--cg-mint); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25), 0 0 30px rgba(127, 230, 210, 0.8);
  animation: cg-stampin 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.cg-stampbig.is-miss { color: #fff; background: #8d7aa6; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25); font-size: 22px; }
@keyframes cg-stampin { from { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(2.2); } }

/* ---------- けっか ---------- */
.rinka-cg-result { position: relative; text-align: center; padding: 8px 4px 4px; }
.cg-result__stars { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 6px 0 6px; height: 66px; }
.cg-result__stars .cg-star { width: 48px; height: 48px; }
.cg-result__stars .cg-star:nth-child(2) { width: 60px; height: 60px; margin-bottom: 6px; }
.cg-result__stars .cg-star.is-on { animation: cg-starin 0.5s cubic-bezier(0.2, 1.8, 0.4, 1) both; filter: drop-shadow(0 0 10px rgba(247, 207, 115, 0.8)); }
.cg-result__stars .cg-star:nth-child(1).is-on { animation-delay: 0.25s; }
.cg-result__stars .cg-star:nth-child(2).is-on { animation-delay: 0.55s; }
.cg-result__stars .cg-star:nth-child(3).is-on { animation-delay: 0.85s; }
@keyframes cg-starin { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
.rinka-cg-result__title {
  margin: 4px 0 2px; font-size: 30px; font-weight: 900; letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff, #ffe39a 70%, var(--cg-gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3));
}
.rinka-cg-result__line { margin: 0 0 12px; font-size: 14px; color: var(--cg-soft); }
.cg-result__score { font-family: var(--cg-num); font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.cg-result__score small { display: block; font-family: var(--cg-font); font-size: 11px; letter-spacing: 0.3em; color: var(--cg-gold); margin-bottom: 4px; }
.cg-newbest {
  display: inline-block; margin-top: 8px; font-family: var(--cg-num); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; color: #3a2408;
  background: linear-gradient(90deg, var(--cg-gold), #fff1c0, var(--cg-gold)); background-size: 200% 100%; border-radius: 999px; padding: 3px 12px;
  animation: cg-shine 1.6s linear infinite;
}
@keyframes cg-shine { to { background-position: -200% 0; } }
.cg-result__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
.cg-result__grid div { padding: 10px 4px; border-radius: 14px; background: var(--cg-glass); box-shadow: inset 0 0 0 1px var(--cg-line); }
.cg-result__grid small { display: block; font-size: 11px; color: var(--cg-soft); }
.cg-result__grid b { display: block; margin-top: 2px; font-family: var(--cg-num); font-size: 19px; }
.cg-result__rewards { display: flex; flex-direction: column; gap: 8px; align-items: stretch; margin: 0 auto 4px; max-width: 420px; }
.cg-reward {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 700; line-height: 1.5;
  background: linear-gradient(135deg, rgba(247, 207, 115, 0.22), rgba(247, 207, 115, 0.08)); box-shadow: inset 0 0 0 1px rgba(247, 207, 115, 0.45);
  animation: cg-say 0.4s 0.9s both cubic-bezier(0.3, 1.5, 0.5, 1);
}
.cg-reward.is-muted { background: var(--cg-glass); box-shadow: inset 0 0 0 1px var(--cg-line); color: var(--cg-soft); font-weight: 500; }
.cg-reward b { color: var(--cg-gold); }
.cg-result__fan { position: relative; height: 96px; margin: 4px 0 12px; }
.cg-result__fan span {
  position: absolute; left: 50%; bottom: 0; width: 54px; height: 72px; margin-left: -27px; border-radius: 8px; overflow: hidden;
  border: 2px solid #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35); transform-origin: 50% 150%;
  transform: rotate(var(--r)); animation: cg-fan 0.6s both cubic-bezier(0.3, 1.4, 0.5, 1); animation-delay: var(--d);
}
.cg-result__fan img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
@keyframes cg-fan { from { transform: rotate(0) translateY(20px); opacity: 0; } }
/* 紙ふぶき */
.cg-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.cg-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; background: var(--c); animation: cg-fall var(--t) linear var(--d) forwards; }
@keyframes cg-fall { to { transform: translate(var(--x), 640px) rotate(var(--rot)); opacity: 0.2; } }

/* はじめてのヒント（共通基盤が入れる） */
.rinka-cg-hint {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.5;
  background: rgba(127, 230, 210, 0.14); box-shadow: inset 0 0 0 1px rgba(127, 230, 210, 0.4);
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  .rinka-cg-arcade *,
  .rinka-cg-arcade *::before,
  .rinka-cg-arcade *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .cg-confetti, .cg-burst { display: none; }
}

/* ---------- せまい画面 ---------- */
@media (max-width: 380px) {
  .rinka-cg-arcade { padding: 14px 10px 16px; border-radius: 22px; }
  .rinka-cg-choice { grid-template-columns: 92px 1fr; }
  .cg-result__score { font-size: 40px; }
  .rinka-cg-board { gap: 6px; padding: 8px; }
}

/* ---------- 文字の見直し（2026-09-26・制作者「フォントがださい」） ----------
   - 字は M PLUS Rounded 1c（500/700/800 を inc/fansite.php で読込・display=swap）、数字と英字は Quicksand。
   - 見出し・ボタンは 800＋字間をつめる（palt）、本文は 500 で細すぎない。900 指定は 800 の字で描かれる。
   - このゲームの文言は日本語／英語だけ（中国語訳なし）。:lang(zh-*) でも日本語の字形のまま、M PLUS に無い字だけ中国語フォントで補う。 */
.rinka-cg-arcade {
  --cg-soft: rgba(255, 247, 238, 0.8);
  font-weight: 500;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.rinka-cg-arcade:lang(zh-CN),
.rinka-cg-arcade:lang(zh-Hans) {
  --cg-font: 'M PLUS Rounded 1c', 'Zen Maru Gothic', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --cg-num: 'Quicksand', 'M PLUS Rounded 1c', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.rinka-cg-arcade:lang(zh-TW),
.rinka-cg-arcade:lang(zh-HK),
.rinka-cg-arcade:lang(zh-Hant) {
  --cg-font: 'M PLUS Rounded 1c', 'Zen Maru Gothic', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
  --cg-num: 'Quicksand', 'M PLUS Rounded 1c', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

/* 見出し：太く・字間つめて・ふちで浮かせる */
.cg-hubhead__title,
.rinka-cg-choice__name,
.cg-top__title b,
.rinka-cg-tier__name,
.rinka-cg-target__name,
.rinka-cg-result__title {
  font-weight: 800;
  font-feature-settings: 'palt' 1;
  line-height: 1.3;
}
.cg-hubhead__title { font-size: 23px; letter-spacing: 0.04em; text-shadow: 0 2px 0 rgba(43, 24, 66, 0.55), 0 0 16px rgba(255, 143, 189, 0.4); }
.rinka-cg-choice__name { font-size: 20px; letter-spacing: 0.03em; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }
.cg-top__title b { font-size: 19px; letter-spacing: 0.03em; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }
.rinka-cg-tier__name { font-size: 17px; letter-spacing: 0.03em; }
.rinka-cg-target__name { letter-spacing: 0.03em; }
.rinka-cg-result__title { font-size: 32px; letter-spacing: 0.05em; }

/* ボタン・ふきだし・スタンプ */
.rinka-cg-btn { font-weight: 800; letter-spacing: 0.06em; font-feature-settings: 'palt' 1; }
.cg-say { font-weight: 700; font-size: 14.5px; letter-spacing: 0.02em; }
.cg-ov__pill,
.cg-stamp,
.cg-stampbig,
.rinka-cg-rarity__lead { font-weight: 800; font-feature-settings: 'palt' 1; }
.cg-ov__big.is-go { font-weight: 800; letter-spacing: 0.04em; font-feature-settings: 'palt' 1; }

/* 説明文：細すぎないように */
.rinka-cg-choice__sub,
.rinka-cg-tier__sub,
.cg-top__title small,
.rinka-cg-result__line,
.cg-daily__txt,
.rinka-cg-hint,
.rinka-cg-reward-left { font-weight: 500; letter-spacing: 0.02em; }
.rinka-cg-result__line { font-size: 14.5px; }

/* 数字：Quicksand を太く・ポップに */
.cg-result__score { text-shadow: 0 3px 0 #b24f86, 0 0 18px rgba(255, 143, 189, 0.55); }
.cg-result__score small { font-family: var(--cg-num); font-weight: 700; text-shadow: none; }
.cg-result__grid small { font-weight: 700; letter-spacing: 0.04em; }
.cg-result__grid b,
.cg-chip,
.cg-ring b,
.rinka-cg-tier__best { font-variant-numeric: tabular-nums; }

@media (max-width: 380px) {
  .cg-hubhead__title { font-size: 21px; }
  .rinka-cg-choice__name { font-size: 18px; }
  .cg-top__title b { font-size: 17px; }
  .rinka-cg-tier__name { font-size: 16px; }
  .rinka-cg-result__title { font-size: 28px; }
}

/* 押す所は 44px 以上（レアだけで あそぶ のチップ） */
.rinka-cg-rarity__chip { min-height: 44px; min-width: 44px; justify-content: center; }

/* ---------- 遊ぶ枠の上の説明文をカードに（2026-09-28・新デザイン body.rw26 のときだけ） ----------
   トップの「りんかとあそぶ」タイルと同じ：白〜淡いピンクの角丸・下に濃い影の線・丸枠の中に Codex の絵（飾り）。
   文字はそのまま（見出し・本文・リンクは変えない）。 */
body.rw26 .rinka-cg-lead {
  --cgl-accent: #d9538f; --cgl-ink: #4a3540; --cgl-soft: #fff0f6; --cgl-soft2: #ffe0ee; --cgl-line: #f6d3e3; --cgl-shadow: rgba(214, 110, 160, .35);
  position: relative;
  display: block;
  margin: 0 0 18px;
  padding: 14px 16px 14px 72px;
  min-height: 74px;
  color: var(--cgl-ink);
  font-size: .9rem; line-height: 1.7; font-weight: 600; text-align: left;
  background: linear-gradient(160deg, #fff 55%, var(--cgl-soft));
  border: 1.5px solid var(--cgl-line);
  border-radius: 22px;
  box-shadow: 0 3px 0 var(--cgl-line), 0 10px 22px -16px var(--cgl-shadow);
}
body.rw26 .rinka-cg-lead::before {
  content: "";
  position: absolute; left: 14px; top: 14px;
  width: 46px; height: 46px; border-radius: 50%;
  background: url("../img/cardgames/icons/card.webp") center / 28px no-repeat, linear-gradient(145deg, var(--cgl-soft), var(--cgl-soft2));
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .6), 0 0 0 3px #fff, 0 4px 10px -4px var(--cgl-shadow);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.rw26 .rinka-cg-lead { --cgl-ink: #f3ecfa; --cgl-soft: #3a3046; --cgl-soft2: #4a3b5c; --cgl-line: #4a3d5a; background: #2a2433; }
  :root:not([data-theme="light"]) body.rw26 .rinka-cg-lead::before { box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .08), 0 0 0 3px #2a2433, 0 4px 10px -4px rgba(0, 0, 0, .5); }
}
:root[data-theme="dark"] body.rw26 .rinka-cg-lead { --cgl-ink: #f3ecfa; --cgl-soft: #3a3046; --cgl-soft2: #4a3b5c; --cgl-line: #4a3d5a; background: #2a2433; }

/* ============================================================
   はじめてガイド（2026-10-01）：ゲームの上に重ねる、絵つきのステップ説明（ドロー・スロット共通）
   ============================================================ */
.gt { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 14px; border-radius: inherit; background: rgba(21, 12, 38, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: gt-fade .3s both; overflow-y: auto; }
@keyframes gt-fade { from { opacity: 0; } }
.gt__card { position: relative; width: min(100%, 380px); margin: auto; padding: 18px 16px 16px; text-align: center; border-radius: 24px; background: linear-gradient(160deg, #3b2458, #22305f); box-shadow: inset 0 0 0 1.5px rgba(247, 207, 115, .55), 0 16px 38px rgba(0, 0, 0, .55); animation: gt-pop .35s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes gt-pop { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.gt__n { font-family: var(--cg-num); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--cg-gold); }
.gt__skip { position: absolute; right: 10px; top: 8px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--cg-soft); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.gt__skip:focus-visible { outline: 2px solid var(--cg-gold); }
.gt__demo { position: relative; min-height: 136px; margin: 8px 0 10px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--cg-line); overflow: hidden; }
.gt__h { margin: 0 0 6px; font-size: 19px; font-weight: 900; letter-spacing: .04em; color: var(--cg-cream); }
.gt__p { margin: 0 auto; max-width: 30em; font-size: 14px; line-height: 1.75; color: var(--cg-soft); text-align: left; }
.gt__dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 10px; }
.gt__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: transform .2s, background .2s; }
.gt__dots i.is-on { background: var(--cg-gold); transform: scale(1.3); }
.gt__btns { display: flex; gap: 10px; justify-content: center; }
.gt__btns .rinka-cg-btn { min-height: 46px; }
@media (prefers-reduced-motion: reduce) { .gt, .gt__card { animation: none; } }

/* ---- はじめてガイドの見本：りんかメモリー／りんかかくれんぼ（2026-10-01） ---- */
.gtm-c, .gth-c { position: relative; display: inline-block; width: 46px; height: 64px; perspective: 400px; }
.gtm-c__f, .gtm-c__b, .gth-c__f, .gth-c__b { position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .5s; }
.gtm-c__b, .gth-c__b { border: 2px solid var(--cg-gold); background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .22), transparent 55%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 2px, transparent 2px 9px), linear-gradient(150deg, #ff9ec8, #c76fd8 55%, #6a57d6); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.gtm-c__f, .gth-c__f { transform: rotateY(180deg); border: 2px solid #fff; background: #ffd1e3; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.gtm-c.p1 .gtm-c__f { background: linear-gradient(160deg, #ffb3d1, #ff7fae); } .gtm-c.p2 .gtm-c__f { background: linear-gradient(160deg, #a8e6ff, #5bb8f0); } .gtm-c.p3 .gtm-c__f { background: linear-gradient(160deg, #c7f0a8, #7ad45a); }
.gtm-c__f::after, .gth-c__f::after { content: ''; position: absolute; left: 50%; top: 42%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.gtm-row, .gth-row { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px; }
.gtm-row .gtm-c.a { animation: gtm-flipA 3.2s ease-in-out infinite; } .gtm-row .gtm-c.b { animation: gtm-flipB 3.2s ease-in-out infinite; }
.gtm-row .gtm-c .gtm-c__b, .gtm-row .gtm-c .gtm-c__f { transition: none; animation: inherit; }
.gtm-row.is-pair .gtm-c.a .gtm-c__b, .gtm-row.is-pair .gtm-c.b .gtm-c__b { animation: gtm-back 3.2s ease-in-out infinite; }
.gtm-row.is-pair .gtm-c.a .gtm-c__f, .gtm-row.is-pair .gtm-c.b .gtm-c__f { animation: gtm-front 3.2s ease-in-out infinite; }
.gtm-row.is-pair .gtm-c.b .gtm-c__b { animation-delay: .5s; } .gtm-row.is-pair .gtm-c.b .gtm-c__f { animation-delay: .5s; }
.gtm-row .gtm-c.a, .gtm-row .gtm-c.b { animation: none; }
@keyframes gtm-back { 0%, 12% { transform: rotateY(0); } 25%, 78% { transform: rotateY(180deg); } 90%, 100% { transform: rotateY(0); } }
@keyframes gtm-front { 0%, 12% { transform: rotateY(180deg); } 25%, 78% { transform: rotateY(360deg); } 90%, 100% { transform: rotateY(180deg); } }
.gtm-ok { position: absolute; right: -6px; top: 4px; font-family: var(--cg-num); font-size: 12px; color: #3a2408; background: var(--cg-gold); border-radius: 999px; padding: 1px 8px; opacity: 0; animation: gtm-ok 3.2s ease-in-out infinite; }
@keyframes gtm-ok { 0%, 40% { opacity: 0; transform: scale(.5); } 50%, 78% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; } }
.gtm-row.is-pair .gtm-c.p1 { box-shadow: none; }
.gtm-row.is-miss .gtm-c.a .gtm-c__b, .gtm-row.is-miss .gtm-c.b .gtm-c__b { animation: gtm-back 3.2s ease-in-out infinite; }
.gtm-row.is-miss .gtm-c.a .gtm-c__f, .gtm-row.is-miss .gtm-c.b .gtm-c__f { animation: gtm-front 3.2s ease-in-out infinite; }
.gtm-grid { display: grid; grid-template-columns: repeat(3, 46px); gap: 8px; padding: 10px; }
.gtm-grid .gtm-c { width: 46px; height: 56px; }
.gtm-grid.is-peek .gtm-c__b { animation: gtm-back2 3.4s ease-in-out infinite; } .gtm-grid.is-peek .gtm-c__f { animation: gtm-front2 3.4s ease-in-out infinite; }
@keyframes gtm-back2 { 0%, 55% { transform: rotateY(180deg); } 70%, 100% { transform: rotateY(0); } }
@keyframes gtm-front2 { 0%, 55% { transform: rotateY(360deg); } 70%, 100% { transform: rotateY(180deg); } }
.gtm-combo { text-align: center; } .gtm-combo b { display: block; font-family: var(--cg-num); font-size: 28px; color: var(--cg-gold); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); animation: gtd-pip 1.2s ease-in-out infinite; }
.gtm-stars { font-size: 26px; letter-spacing: 6px; color: var(--cg-gold); text-shadow: 0 0 10px rgba(247, 207, 115, .6); }
/* かくれんぼ */
.gth-target { display: flex; flex-direction: column; align-items: center; gap: 6px; } .gth-target .gth-c { width: 62px; height: 86px; }
.gth-target b { font-size: 13px; color: var(--cg-gold); font-weight: 900; letter-spacing: .06em; }
.gth-c.is-up .gth-c__f { transform: rotateY(0); background: linear-gradient(160deg, #ffb3d1, #ff7fae); } .gth-c.is-up .gth-c__b { transform: rotateY(180deg); }
.gth-c.is-glow { animation: gth-glow 1.3s ease-in-out infinite alternate; } @keyframes gth-glow { to { filter: drop-shadow(0 0 14px rgba(247, 207, 115, .95)); transform: scale(1.06); } }
.gth-row { gap: 10px; padding: 12px 18px; }
.gth-row.is-shuffle .x1 { animation: gth-s1 3s ease-in-out infinite; } .gth-row.is-shuffle .x2 { animation: gth-s2 3s ease-in-out infinite; } .gth-row.is-shuffle .x3 { animation: gth-s3 3s ease-in-out infinite; }
@keyframes gth-s1 { 0%, 15%, 100% { transform: translateX(0); } 40%, 60% { transform: translateX(112px); } } @keyframes gth-s2 { 0%, 15%, 100% { transform: translateX(0); } 40%, 60% { transform: translateX(-56px); } } @keyframes gth-s3 { 0%, 15%, 100% { transform: translateX(0); } 40%, 60% { transform: translateX(-56px); } }
.gth-row .gth-c__b::after { content: '？'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; color: rgba(255, 255, 255, .85); }
.gth-row.is-pick .gth-c.is-hit .gth-c__b { animation: gtm-back 3.2s ease-in-out infinite; } .gth-row.is-pick .gth-c.is-hit .gth-c__f { animation: gtm-front 3.2s ease-in-out infinite; }
.gth-tap { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -8px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 3px rgba(247, 207, 115, .85); animation: gtd-tap 3.2s ease-in-out infinite; }
.gth-rounds { display: flex; align-items: center; gap: 8px; } .gth-rounds i { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.gth-rounds i.on { background: radial-gradient(circle at 35% 30%, #fff6cc, var(--cg-gold) 55%, var(--cg-gold2)); box-shadow: 0 0 10px rgba(247, 207, 115, .6); }
.gth-stars { margin-left: 10px; font-size: 24px; letter-spacing: 5px; color: var(--cg-gold); text-shadow: 0 0 10px rgba(247, 207, 115, .6); }
@media (prefers-reduced-motion: reduce) { .gtm-c *, .gtm-ok, .gtm-combo b, .gth-c, .gth-row .gth-c, .gth-tap { animation: none !important; } }
