/* ==========================================================
   GÜNLÜĞÜM — ZAR OYUNU / YENİ GAMECAPSULE DÜZENİ
   Ortak site kabuğuyla aynı mor-mavi yüzeyler ve tipografi.
   Zar oyununun mevcut DOM kimlikleri/JavaScript'i korunur.
   ========================================================== */

/* matte.css içindeki genel body > main (hata sayfaları için)
   kuralını bu sayfada sıfırla; önceki dar sütun sorununun nedeni buydu. */
body > main.dice-page-shell,
body.gc-shell-mounted > main.dice-page-shell {
  display: block !important;
  width: min(1480px, calc(100% - 72px)) !important;
  max-width: 1480px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: clamp(26px, 3.2vw, 46px) 0 calc(76px + env(safe-area-inset-bottom)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--gc-ink, #f4f5ff) !important;
  text-align: left !important;
}

.dice-page {
  min-height: 100vh;
  color: var(--gc-ink, #f4f5ff);
  background: transparent !important;
}

.dice-page-shell::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: 8%;
  right: -180px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(116, 91, 228, .10), transparent 68%);
}

/* Başlık */
.dice-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 24px;
  padding: 0 230px 0 0;
}
.dice-eyebrow,
.dice-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gc-purple-light, #c3b4ff) !important;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dice-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gc-purple, #9272ff);
  box-shadow: 0 0 0 5px rgba(146, 114, 255, .12), 0 0 16px rgba(146, 114, 255, .55);
}
.dice-heading h1 {
  margin: 10px 0 7px;
  color: var(--gc-ink, #f4f5ff) !important;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.06em;
  font-weight: 900 !important;
}
.dice-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--gc-muted, #9ba3bc) !important;
  font-size: 13px;
  line-height: 1.7;
}
.dice-heading::after {
  content: "SANAL KREDİ · GERÇEK PARA DEĞİL";
  position: absolute;
  right: 0;
  bottom: 5px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--gc-line, rgba(151,139,255,.16));
  border-radius: 999px;
  color: var(--gc-muted, #9ba3bc);
  background: var(--gc-panel-soft, rgba(255,255,255,.035));
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
}

/* Bakiye kartı */
.dice-balance-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  margin: 0 0 18px;
  padding: 21px 26px 17px;
  overflow: hidden;
  border: 1px solid var(--gc-line-strong, rgba(151,139,255,.30));
  border-radius: 20px;
  background:
    radial-gradient(ellipse 420px 180px at 100% 0, rgba(85,184,255,.13), transparent 72%),
    radial-gradient(ellipse 500px 220px at 0 100%, rgba(146,114,255,.17), transparent 76%),
    linear-gradient(115deg, var(--gc-panel-2, #161929), var(--gc-panel, #11131f));
  box-shadow: var(--gc-shadow, 0 22px 60px rgba(0,0,0,.25));
}
.dice-balance-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dice-overline { color: var(--gc-muted, #9ba3bc) !important; font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.dice-balance-main strong {
  color: var(--gc-ink, #f4f5ff);
  font-size: clamp(42px, 5.3vw, 62px);
  font-weight: 950;
  letter-spacing: -.07em;
  line-height: 1.02;
  font-variant-numeric: tabular-nums;
}
.dice-daily-button {
  min-width: 154px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(224, 190, 111, .30);
  border-radius: 13px;
  color: #f1d18a;
  background: linear-gradient(145deg, rgba(151,111,48,.20), rgba(117,83,31,.12));
  font: 850 12px/1.3 var(--gc-font, system-ui, sans-serif);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}
.dice-daily-button:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(231,192,112,.58); background: rgba(171,126,54,.22); }
.dice-daily-button:disabled { opacity: .48; cursor: not-allowed; }
.dice-daily-status {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--gc-line, rgba(151,139,255,.16));
  color: var(--gc-muted, #9ba3bc) !important;
  font-size: 11px;
  line-height: 1.55;
}

/* Ana oyun alanı + sağ bilgi sütunu */
.dice-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(340px, .92fr);
  align-items: start;
  gap: 18px;
}
.dice-insights-column { display: grid; gap: 18px; min-width: 0; }
.dice-game-card,
.dice-month-panel,
.dice-history-panel {
  min-width: 0;
  padding: clamp(20px, 2.1vw, 28px);
  border: 1px solid var(--gc-line, rgba(151,139,255,.16));
  border-radius: 20px;
  background: linear-gradient(150deg, var(--gc-panel-2, rgba(22,25,41,.96)), var(--gc-panel, rgba(17,19,31,.96)) 72%);
  box-shadow: 0 18px 50px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.025);
}
.dice-game-card {
  display: grid;
  grid-template-columns: minmax(240px, .84fr) minmax(0, 1.16fr);
  grid-template-areas:
    "visual legend"
    "visual bet"
    "visual presets"
    "visual roll"
    "feedback feedback"
    "auto auto"
    "note note";
  align-items: center;
  gap: 13px clamp(22px, 2.5vw, 36px);
}

/* Zar sahnesi */
.dice-visual-stage {
  position: relative;
  grid-area: visual;
  display: grid;
  place-items: center;
  width: min(100%, 330px);
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--gc-line-strong, rgba(151,139,255,.30));
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 34%, rgba(146,114,255,.20), transparent 58%),
    linear-gradient(145deg, color-mix(in srgb, var(--gc-panel-2, #161929) 88%, #30375a), var(--gc-panel, #11131f));
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 18px 42px rgba(0,0,0,.17);
  isolation: isolate;
}
.dice-visual-stage::before,
.dice-visual-stage::after { content: ""; position: absolute; border: 1px solid rgba(162,144,255,.11); border-radius: 50%; pointer-events: none; }
.dice-visual-stage::before { inset: 12%; }
.dice-visual-stage::after { inset: 23%; border-style: dashed; opacity: .65; }
.dice-glow {
  position: absolute;
  width: 62%;
  height: 48%;
  border-radius: 50%;
  background: rgba(146,114,255,.30);
  filter: blur(38px);
  z-index: -1;
}
.dice-cube { position: relative; z-index: 1; width: min(72%, 220px); height: auto; filter: drop-shadow(0 26px 24px rgba(0,0,0,.40)); transform: translateY(0) rotate(0deg); }
.dice-visual-stage.is-rolling .dice-cube { animation: dice-roll .78s cubic-bezier(.2,.75,.2,1); }
@keyframes dice-roll {
  0% { transform: translateY(0) rotate(0) scale(1); }
  22% { transform: translateY(-18px) rotate(55deg) scale(.92); }
  48% { transform: translateY(6px) rotate(170deg) scale(1.04); }
  72% { transform: translateY(-9px) rotate(285deg) scale(.98); }
  100% { transform: translateY(0) rotate(360deg) scale(1); }
}
.dice-roll-value {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  min-width: 42px;
  padding: 7px 11px;
  border: 1px solid var(--gc-line-strong, rgba(151,139,255,.30));
  border-radius: 11px;
  color: var(--gc-ink, #f4f5ff);
  background: rgba(8,9,15,.78);
  font-size: 14px;
  font-weight: 950;
  text-align: center;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(10px);
}

/* Olasılık göstergesi */
.dice-outcome-legend { grid-area: legend; min-width: 0; margin: 0 0 5px; }
.dice-probability-track { display: flex; height: 11px; overflow: hidden; border: 1px solid var(--gc-line, rgba(151,139,255,.16)); border-radius: 99px; background: var(--gc-panel-soft, rgba(255,255,255,.035)); }
.dice-probability-track span { display: block; height: 100%; }
.prob-loss { width: 54.455%; background: linear-gradient(90deg, #dd7788, #be5c78); }
.prob-win { width: 43.564%; background: linear-gradient(90deg, #50c69b, #55b8ff); }
.prob-jackpot { width: 1.981%; min-width: 6px; background: linear-gradient(90deg, #e6bd67, #f7df9a); }
.dice-legend-labels { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; color: var(--gc-dim, #6d7690); font-size: 11px; font-weight: 850; font-variant-numeric: tabular-nums; }
.legend-loss { color: #e58b9b; }
.legend-win { color: #66d5b0; }
.legend-jackpot { color: #e4c476; }
.dice-rules-caption { margin: 10px 0 0; color: var(--gc-muted, #9ba3bc) !important; font-size: 11px; line-height: 1.6; }

/* Bahis kontrolleri */
.dice-bet-control { grid-area: bet; display: grid; grid-template-columns: 50px minmax(0,1fr) 50px; align-items: center; gap: 12px; width: 100%; }
.dice-bet-control > button {
  width: 50px;
  height: 50px;
  border: 1px solid var(--gc-line-strong, rgba(151,139,255,.30));
  border-radius: 14px;
  color: var(--gc-ink, #f4f5ff);
  background: var(--gc-panel-soft, rgba(255,255,255,.035));
  font-size: 23px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.dice-bet-control > button:hover { transform: translateY(-2px); border-color: var(--gc-purple, #9272ff); background: rgba(146,114,255,.12); }
.dice-bet-input-wrap { min-width: 0; }
.dice-bet-input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid var(--gc-line-strong, rgba(151,139,255,.30));
  border-radius: 0;
  outline: 0;
  color: var(--gc-ink, #f4f5ff);
  background: transparent;
  text-align: center;
  font: 950 clamp(23px, 2vw, 29px)/1 var(--gc-font, system-ui, sans-serif);
  font-variant-numeric: tabular-nums;
}
.dice-bet-input-wrap input:focus { border-bottom-color: var(--gc-purple, #9272ff); box-shadow: 0 2px 0 color-mix(in srgb, var(--gc-purple, #9272ff) 55%, transparent); }
.dice-bet-input-wrap input::-webkit-inner-spin-button,
.dice-bet-input-wrap input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.dice-bet-input-wrap input[type=number] { appearance: textfield; }
.dice-bet-presets { grid-area: presets; display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin: 0; }
.dice-bet-presets button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--gc-line, rgba(151,139,255,.16));
  border-radius: 999px;
  color: var(--gc-muted, #9ba3bc);
  background: var(--gc-panel-soft, rgba(255,255,255,.035));
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.dice-bet-presets button:hover { transform: translateY(-1px); color: var(--gc-ink, #f4f5ff); border-color: var(--gc-purple, #9272ff); background: rgba(146,114,255,.11); }
.dice-roll-button {
  grid-area: roll;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  margin: 2px 0 0;
  padding: 15px 22px;
  border: 1px solid rgba(190,177,255,.35);
  border-radius: 15px;
  color: #fff !important;
  background: linear-gradient(110deg, #7655d9 0%, #5b70d8 52%, #3989c9 100%) !important;
  box-shadow: 0 12px 30px rgba(101,79,202,.25), inset 0 1px rgba(255,255,255,.17);
  font: 950 15px/1.2 var(--gc-font, system-ui, sans-serif);
  letter-spacing: .07em;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.dice-roll-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 35px rgba(101,79,202,.34); }
.dice-roll-button:disabled { opacity: .55; cursor: not-allowed; }
.dice-feedback {
  grid-area: feedback;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 66px;
  margin-top: 2px;
  padding: 13px 16px;
  border: 1px solid var(--gc-line, rgba(151,139,255,.16));
  border-radius: 14px;
  color: var(--gc-ink, #f4f5ff);
  background: var(--gc-panel-soft, rgba(255,255,255,.035));
}
.dice-feedback strong { color: var(--gc-ink, #f4f5ff); font-size: 13px; font-weight: 900; }
.dice-feedback span { color: var(--gc-muted, #9ba3bc); font-size: 11px; line-height: 1.5; }
.dice-feedback.is-loss { border-color: rgba(225,123,143,.23); background: rgba(225,123,143,.055); }
.dice-feedback.is-loss strong { color: #e58b9b; }
.dice-feedback.is-win { border-color: rgba(80,198,155,.22); background: rgba(80,198,155,.055); }
.dice-feedback.is-win strong { color: #66d5b0; }
.dice-feedback.is-jackpot { border-color: rgba(228,196,118,.28); background: rgba(228,196,118,.065); }
.dice-feedback.is-jackpot strong { color: #e4c476; }
.dice-auto-row {
  grid-area: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding-top: 3px;
  color: var(--gc-muted, #9ba3bc);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.dice-auto-row > span:first-child { display: flex; align-items: center; gap: 8px; }
.dice-auto-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gc-dim, #6d7690); }
.dice-auto-row input { position: absolute; right: 0; width: 44px; height: 26px; opacity: 0; cursor: pointer; }
.dice-switch { position: relative; width: 44px; height: 25px; border: 1px solid var(--gc-line-strong, rgba(151,139,255,.30)); border-radius: 99px; background: var(--gc-panel-soft, rgba(255,255,255,.035)); transition: all .2s ease; }
.dice-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--gc-muted, #9ba3bc); transition: transform .2s ease, background .2s ease; }
.dice-auto-row input:checked + .dice-switch { border-color: var(--gc-purple, #9272ff); background: rgba(146,114,255,.23); }
.dice-auto-row input:checked + .dice-switch::after { transform: translateX(19px); background: var(--gc-purple-light, #c3b4ff); }
.dice-auto-row:has(input:checked) .dice-auto-dot { background: var(--gc-green, #4adea0); box-shadow: 0 0 9px rgba(74,222,160,.65); }
.dice-auto-note { grid-area: note; margin: -6px 0 0; color: var(--gc-dim, #6d7690) !important; font-size: 10px; line-height: 1.55; }

/* İstatistik ve geçmiş sütunu */
.dice-month-panel,
.dice-history-panel { margin: 0; padding: 21px; }
.dice-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dice-section-head h2 { margin: 5px 0 3px; color: var(--gc-ink, #f4f5ff) !important; font-size: 18px; font-weight: 900 !important; letter-spacing: -.035em; }
.dice-section-head p { margin: 0; color: var(--gc-muted, #9ba3bc) !important; font-size: 11px; }
.dice-month-select select {
  max-width: 150px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--gc-line-strong, rgba(151,139,255,.30));
  border-radius: 10px;
  color: var(--gc-ink, #f4f5ff);
  background: var(--gc-panel-2, #161929);
  font: 750 11px/1.2 var(--gc-font, system-ui, sans-serif);
}
.dice-month-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.dice-month-stats article {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid var(--gc-line, rgba(151,139,255,.16));
  border-radius: 13px;
  background: var(--gc-panel-soft, rgba(255,255,255,.035));
}
.dice-month-stats span { display: block; color: var(--gc-muted, #9ba3bc) !important; font-size: 10px; line-height: 1.4; }
.dice-month-stats strong { display: block; margin-top: 7px; color: var(--gc-ink, #f4f5ff); font-size: clamp(16px, 1.45vw, 21px); font-weight: 950; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dice-month-stats strong.is-negative { color: #e58b9b; }
.dice-month-stats strong.is-positive { color: #66d5b0; }
.dice-local-notice { margin: 13px 0 0; padding: 12px 13px; border: 1px solid var(--gc-line, rgba(151,139,255,.16)); border-radius: 12px; color: var(--gc-muted, #9ba3bc) !important; background: rgba(146,114,255,.055); font-size: 10px; line-height: 1.65; }
.dice-history-count { color: var(--gc-muted, #9ba3bc); font-size: 11px; font-weight: 850; white-space: nowrap; }
.dice-history-list { display: grid; gap: 8px; max-height: 470px; overflow: auto; padding-right: 3px; scrollbar-width: thin; }
.dice-history-item { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 12px; background: var(--gc-panel-soft, rgba(255,255,255,.035)); transition: border-color .18s ease, background .18s ease; }
.dice-history-item:hover { border-color: var(--gc-line-strong, rgba(151,139,255,.30)); background: rgba(146,114,255,.07); }
.dice-history-number { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--gc-line, rgba(151,139,255,.16)); border-radius: 11px; color: var(--gc-ink, #f4f5ff); background: rgba(146,114,255,.09); font-size: 13px; font-weight: 950; }
.dice-history-copy { min-width: 0; }
.dice-history-copy strong { display: block; color: var(--gc-ink, #f4f5ff); font-size: 11px; font-weight: 900; }
.dice-history-copy small { display: block; margin-top: 3px; color: var(--gc-muted, #9ba3bc) !important; font-size: 10px; }
.dice-history-result { font-size: 11px; font-weight: 950; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dice-history-result.is-loss { color: #e58b9b; }
.dice-history-result.is-win { color: #66d5b0; }
.dice-history-result.is-jackpot { color: #e4c476; }
.dice-history-empty { margin: 0; padding: 22px 14px; border: 1px dashed var(--gc-line-strong, rgba(151,139,255,.30)); border-radius: 13px; color: var(--gc-muted, #9ba3bc) !important; text-align: center; font-size: 11px; }
.dice-disclaimer { max-width: 900px; margin: 22px auto 0; color: var(--gc-dim, #6d7690) !important; text-align: center; font-size: 10px; line-height: 1.7; }
.dice-storage-warning { margin: 12px auto 0; padding: 12px 14px; border: 1px solid rgba(225,129,145,.25); border-radius: 12px; color: #e9a1ad; background: rgba(225,91,111,.07); font-size: 11px; line-height: 1.5; text-align: center; }
.dice-storage-warning[hidden] { display: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Aydınlık tema */
:root[data-theme="light"] .dice-balance-card,
:root[data-theme="light"] .dice-game-card,
:root[data-theme="light"] .dice-month-panel,
:root[data-theme="light"] .dice-history-panel { box-shadow: 0 16px 42px rgba(42,43,83,.08), inset 0 1px rgba(255,255,255,.75); }
:root[data-theme="light"] .dice-visual-stage { background: radial-gradient(circle at 50% 34%, rgba(114,80,214,.13), transparent 58%), linear-gradient(145deg,#fff,#f0effa); }
:root[data-theme="light"] .dice-roll-value { color: #fff; background: rgba(29,28,49,.82); }
:root[data-theme="light"] .dice-bet-input-wrap input { color: var(--gc-ink, #20233b); }
:root[data-theme="light"] .dice-month-select select { background: #fff; }

/* Tablet */
@media (max-width: 1100px) {
  body > main.dice-page-shell,
  body.gc-shell-mounted > main.dice-page-shell {
    width: min(1320px, calc(100% - 48px)) !important;
    padding-top: 30px !important;
  }
  .dice-dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); gap: 15px; }
  .dice-game-card { grid-template-columns: minmax(190px, .78fr) minmax(0, 1.22fr); gap: 12px 20px; padding: 20px; }
  .dice-visual-stage { width: min(100%, 280px); }
  .dice-month-panel, .dice-history-panel { padding: 18px; }
}
@media (max-width: 860px) {
  .dice-dashboard-grid { grid-template-columns: minmax(0,1fr); }
  .dice-insights-column { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .dice-history-panel { grid-column: 1 / -1; }
  .dice-history-list { max-height: 320px; }
}

/* Telefon */
@media (max-width: 620px) {
  body > main.dice-page-shell,
  body.gc-shell-mounted > main.dice-page-shell {
    width: calc(100% - 28px) !important;
    padding: 22px 0 calc(92px + env(safe-area-inset-bottom)) !important;
  }
  .dice-heading { margin-bottom: 17px; padding-right: 0; }
  .dice-heading h1 { margin-top: 9px; font-size: clamp(29px, 8vw, 38px); }
  .dice-heading p { max-width: 100%; font-size: 12px; }
  .dice-heading::after { position: static; align-self: flex-start; margin-top: 11px; min-height: 30px; font-size: 8px; }
  .dice-balance-card { grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; margin-bottom: 14px; padding: 17px; border-radius: 17px; }
  .dice-balance-main strong { font-size: clamp(34px, 10vw, 47px); }
  .dice-daily-button { min-width: 112px; min-height: 40px; padding: 9px 10px; font-size: 10px; }
  .dice-dashboard-grid { gap: 13px; }
  .dice-game-card {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "visual" "legend" "bet" "presets" "roll" "feedback" "auto" "note";
    gap: 13px;
    padding: 15px;
    border-radius: 17px;
  }
  .dice-visual-stage { width: min(68vw, 245px); }
  .dice-outcome-legend { margin-bottom: 1px; }
  .dice-legend-labels { gap: 5px; font-size: 9px; }
  .dice-rules-caption { font-size: 10px; }
  .dice-bet-control { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; }
  .dice-bet-control > button { width: 44px; height: 44px; border-radius: 12px; }
  .dice-bet-input-wrap input { height: 44px; font-size: 22px; }
  .dice-bet-presets { justify-content: center; gap: 6px; }
  .dice-bet-presets button { min-height: 33px; padding: 0 10px; font-size: 10px; }
  .dice-roll-button { min-height: 55px; font-size: 14px; }
  .dice-feedback { min-height: 56px; }
  .dice-insights-column { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .dice-month-panel, .dice-history-panel { padding: 15px; }
  .dice-month-stats { gap: 7px; }
  .dice-month-stats article { padding: 11px 9px; }
  .dice-month-stats span { font-size: 9px; }
  .dice-month-stats strong { font-size: 15px; }
  .dice-section-head h2 { font-size: 16px; }
  .dice-month-select select { max-width: 120px; min-height: 35px; font-size: 10px; }
  .dice-local-notice { font-size: 9px; }
  .dice-history-list { max-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .dice-cube, .dice-roll-button, .dice-daily-button, .dice-bet-control > button { animation: none !important; transition: none !important; }
}
