/* DAYDAY · Games, racing, catalogue and messaging.
 * All page text and controls are editable DOM. The six fishing artworks use
 * the unchanged supplied screenshot atlas, cropped by CSS only.
 */
.ddg-wrap {
  --ddg-gold: #ffdd76;
  --ddg-white-gold: #fff7b9;
  --ddg-purple: #2e8bff;
  --ddg-muted: #b2c4e0;
  display: grid;
  gap: 22px;
  min-width: 0;
  max-width: 100%;
  color: #f9fbfe;
  isolation: isolate;
}
.ddg-wrap *, .ddg-wrap *::before, .ddg-wrap *::after { box-sizing: border-box; }
.ddg-wrap h1, .ddg-wrap h2, .ddg-wrap h3, .ddg-wrap p { margin-top: 0; }
.ddg-wrap button { font: inherit; }
.ddg-wrap button, .ddg-wrap input, .ddg-wrap textarea { -webkit-tap-highlight-color: transparent; }
.ddg-wrap button:focus-visible, .ddg-wrap summary:focus-visible, .ddg-wrap input:focus-visible, .ddg-wrap textarea:focus-visible {
  outline: 3px solid #fff7c2;
  outline-offset: 4px;
}
.ddg-page-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; min-width: 0; }
.ddg-page-intro > div:first-child { min-width: 0; }
.ddg-page-intro h1 { font-size: clamp(25px, 2.8vw, 36px); line-height: 1.18; margin: 5px 0 8px; letter-spacing: -.025em; }
.ddg-page-intro p { margin-bottom: 0; font-size: 14px; line-height: 1.6; }
.ddg-eyebrow { color: var(--ddg-gold); font-size: 10px; letter-spacing: .19em; font-weight: 800; }
.ddg-balance { display: flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; border: 1px solid #c9913a; padding: 7px 12px; border-radius: 999px; background: linear-gradient(180deg, #1b2b48, #0b121f); box-shadow: inset 0 1px 0 #ffe7a547, 0 0 14px #f0ad2522; color: #ffe78e; white-space: nowrap; font-size: 11px; }
.ddg-balance { min-width: 0; max-width: 100%; }
.ddg-balance strong { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ddg-balance-icon { width: 23px; height: 23px; object-fit: contain; transform: scale(1.4); margin-right: 4px; }
.ddg-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #f6c75d;
  border-radius: 21px;
  background: radial-gradient(ellipse at 100% 100%, #0a377b66 0, transparent 53%), linear-gradient(145deg, #0b1d3d 0%, #071020 38%, #060a12 100%);
  box-shadow: inset 0 0 0 2px #fff3b51a, inset 0 1px 5px #fff5b64a, 0 0 0 1px #a15d2380, 0 0 19px #f7982c24, 0 0 26px #126ede18;
}
.ddg-panel::after { content: ''; position: absolute; pointer-events: none; height: 2px; top: 0; left: 8%; right: 8%; background: linear-gradient(90deg, transparent, #fff8cd 25%, #8dc0ff 54%, transparent 95%); box-shadow: 0 0 9px #ffb135, 0 0 14px #3a93ff; opacity: .95; }
.ddg-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 0 -8px; }
.ddg-section-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(20px, 2vw, 25px); line-height: 1.3; letter-spacing: .02em; }
.ddg-section-spark { display: block; width: 5px; height: 23px; border-radius: 3px; background: linear-gradient(#fff7a5, #ffb72b 30%, #3992ff); box-shadow: 0 0 13px #4498ff88; }
.ddg-main-cta { min-height: 53px; font-size: 17px; font-weight: 850; letter-spacing: .02em; }
.ddg-main-cta svg { width: 18px; height: 18px; }
.ddg-main-cta:disabled { cursor: not-allowed; }
.ddg-error { display: block; color: #ff9cae; font-size: 12px; line-height: 1.5; min-height: 0; }
.ddg-error:empty { display: none; }

/* Dice */
.ddg-dice-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 22px; align-items: start; }
.ddg-dice-layout > .page-stack { display: grid; gap: 18px; min-width: 0; }
.ddg-stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 20px 23px; background: linear-gradient(142deg, transparent 0 27%, #005dcf29 27% 37%, transparent 37% 74%, #1166cf21 74% 84%, transparent 84%), radial-gradient(ellipse at 48% 30%, #14326a 0, #0a1831 43%, #070d17 90%); }
.ddg-stage::before { content: ''; position: absolute; width: 130%; height: 2px; top: 35%; left: -20%; background: linear-gradient(90deg, transparent 25%, #2083fc, #c1d8fa 50%, #2083fc 62%, transparent 82%); box-shadow: 0 0 13px #3a93ff, 0 0 25px #005ac9; transform: rotate(-27deg); pointer-events: none; opacity: .6; }
.ddg-stage > * { position: relative; z-index: 1; }
.ddg-stage-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.ddg-fair { color: #efd774; font-size: 10px; font-weight: 750; letter-spacing: .18em; }
.ddg-stage-top .icon-btn { width: 31px; height: 31px; }
.ddg-dice-art { width: 173px; height: 173px; object-fit: contain; margin: -10px 0 -7px; filter: drop-shadow(0 5px 14px #0055bd66); }
.ddg-dice-roll { margin: -2px 0 4px; color: #ffe36c; font-size: 48px; line-height: 1.1; font-weight: 900; text-shadow: 0 0 18px #ffb32c66; font-variant-numeric: tabular-nums; min-height: 53px; }
.ddg-stage h2 { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; margin: 8px 0 11px; }
.ddg-range-note { padding: 6px 13px; border: 1px solid #708cb7; border-radius: 100px; background: #0a162cd9; font-size: 13px; line-height: 1.4; color: #dbe4f2; }
.ddg-rtp { margin: 9px 0 0; color: #b7c3d6; font-size: 12px; letter-spacing: .06em; }
.ddg-rtp strong { color: #e8eff9; font-weight: 600; }
.ddg-dice-form { padding: 20px; display: grid; gap: 12px; }
.ddg-side-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.ddg-side-choice { min-width: 0; min-height: 81px; padding: 13px 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border: 1px solid #506e9c; border-radius: 16px; color: #d7e0ee; background: linear-gradient(155deg, #152543, #0c1424); box-shadow: inset 0 1px 2px #a3c4f720; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.ddg-side-choice strong { font-size: 24px; line-height: 1.1; }
.ddg-side-choice span { font-size: 13px; font-variant-numeric: tabular-nums; }
.ddg-side-choice:hover:not(:disabled) { border-color: #f5d871; transform: translateY(-1px); }
.ddg-side-choice.is-active { border-color: #fff1a6; color: #ffe678; background: linear-gradient(160deg, #4b2c17, #0e1626 68%, #491c18); box-shadow: inset 0 0 0 2px #ffc34466, inset 0 0 14px #f7a5192b, 0 0 3px #fff7b9, 0 0 17px #ffaa3d66; }
.ddg-dice-form .field-label { margin: 2px 0 -3px; font-size: 14px; font-weight: 650; }
.ddg-amount-field { position: relative; }
.ddg-amount-field input { width: 100%; min-height: 51px; border: 1px solid #ba8b4f; padding: 12px 63px 12px 15px; font-size: 20px; font-weight: 650; border-radius: 12px; background: #070d19; color: #fff9f8; }
.ddg-amount-field > span { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #a7b4c8; font-size: 12px; pointer-events: none; }
.ddg-form-meta { display: grid; gap: 7px; margin: -2px 0 3px; }
.ddg-form-meta .small { font-size: 11px; }
.ddg-panel-heading { display: flex; gap: 10px; align-items: center; padding: 20px 21px 17px; border-bottom: 1px solid #bd733d4d; }
.ddg-panel-heading h2 { font-size: 20px; margin: 0; }
.ddg-heading-icon { color: #ffd878; width: 23px; height: 23px; }
.ddg-heading-icon svg { width: 100%; height: 100%; }
.ddg-history { align-self: start; }
.ddg-history .ddg-panel-heading h2 { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.ddg-history-refresh { width: 31px; height: 31px; margin-left: auto; }
.ddg-history-refresh.is-busy svg { animation: ddg-rotate 1s linear infinite; }
.ddg-history-empty { display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 32px 20px; color: #a4b5ce; text-align: center; font-size: 13px; line-height: 1.7; }
.ddg-history-empty > svg { width: 28px; height: 28px; color: #e2be71; }
.ddg-table-scroll { overflow-x: auto; padding: 5px 19px 12px; }
.ddg-history table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
.ddg-history th { padding: 11px 4px 9px; font-weight: 500; color: #a2b0c5; font-size: 11px; letter-spacing: .04em; }
.ddg-history td { padding: 15px 4px; border-top: 1px solid #e4b15233; font-variant-numeric: tabular-nums; }
.ddg-history th:nth-child(2), .ddg-history td:nth-child(2) { text-align: center; }
.ddg-history th:last-child, .ddg-history td:last-child { text-align: right; white-space: nowrap; }
.ddg-history td:nth-child(2) strong { font-size: 21px; }
.ddg-history td:last-child { font-weight: 750; }
.ddg-history td:last-child span { font-size: 10px; font-weight: 500; }
.ddg-history-side { font-size: 12px; font-weight: 650; letter-spacing: .03em; }

/* Rules */
.ddg-rules-page { max-width: 960px; margin-inline: auto; width: 100%; }
.ddg-rule-hero { position: relative; padding: 4px 12px 3px; display: flex; flex-direction: column; align-items: center; text-align: center; isolation: isolate; overflow: hidden; }
.ddg-rule-halo { position: absolute; z-index: -1; top: 35px; left: 50%; transform: translateX(-50%); width: 320px; height: 185px; border-radius: 50%; background: radial-gradient(ellipse, #1169d456, transparent 64%); filter: blur(12px); }
.ddg-rule-art { height: 208px; width: 240px; object-fit: contain; margin: -12px 0 -30px; filter: drop-shadow(0 6px 16px #1e7bed2e); }
.ddg-gold-ribbon { min-width: 190px; z-index: 2; position: relative; padding: 7px 26px; color: #fff3ab; font-weight: 900; font-size: 16px; letter-spacing: .15em; text-shadow: 0 2px 2px #390111; border: 1px solid #ffe79b; border-radius: 7px 7px 3px 3px; transform: rotate(-3deg); background: linear-gradient(180deg, #8b3756, #0d285b 17%, #0d1a32 65%, #912c49); box-shadow: inset 0 2px 0 #fbb44d, inset 0 -2px 0 #ffca66, 0 0 15px #ff9a174d; }
.ddg-rule-hero h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.25; margin: 22px 0 8px; letter-spacing: .025em; }
.ddg-rule-hero p { font-size: 13px; letter-spacing: .05em; margin-bottom: 0; }
.ddg-rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; align-items: start; }
.ddg-rule-grid > *, .ddg-room-list > *, .ddg-catalog-tools > *, .ddg-race-title > div { min-width: 0; }
.ddg-rule summary h2, .ddg-page-intro h1, .ddg-race-title h2, .ddg-conversation-header h2 { overflow-wrap: anywhere; }
.ddg-rule-wide { grid-column: 1 / -1; }
.ddg-rule summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 19px 20px; }
.ddg-rule summary::-webkit-details-marker { display: none; }
.ddg-rule summary h2 { flex: 1; margin: 0; font-size: 19px; line-height: 1.35; }
.ddg-rule-symbol { color: #ffe374; width: 27px; height: 27px; flex: 0 0 27px; filter: drop-shadow(0 0 5px #ff9e2d66); }
.ddg-rule-symbol svg { width: 100%; height: 100%; }
.ddg-rule-chevron { width: 16px; height: 16px; color: #abb9ce; flex-shrink: 0; transition: transform .18s; }
.ddg-rule-chevron svg { width: 100%; height: 100%; }
.ddg-rule[open] .ddg-rule-chevron { transform: rotate(90deg); }
.ddg-rule-body { padding: 0 20px 20px; color: #cdd7e6; font-size: 14px; line-height: 1.8; }
.ddg-rule-body p { margin: 0 0 12px; }
.ddg-rule-body p:last-child { margin-bottom: 0; }
.ddg-rule-body .btn { margin-top: 2px; }
.ddg-difficulty-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.ddg-difficulty-tags span { display: inline-flex; border: 1px solid #5876a469; padding: 2px 9px; border-radius: 999px; background: #3c70be0e; color: #f5d38b; font-size: 10px; font-weight: 650; }
.ddg-rule-footer { display: grid; gap: 16px; padding: 20px; margin-top: 2px; }
.ddg-rule-footer:not(.ddg-panel) { padding: 5px 0; }
.ddg-agreement { display: flex; align-items: center; gap: 10px; color: #d5deec; font-size: 13px; cursor: pointer; }
.ddg-agreement input { width: 19px; height: 19px; accent-color: #ffcb4d; flex: 0 0 19px; }

/* Racing */
.ddg-race-hero { padding: 23px 24px 17px; background: radial-gradient(ellipse at 72% 45%, #0d51a4a6, transparent 50%), linear-gradient(135deg, #0d224a, #070d19 65%); }
.ddg-race-hero::before { content: ''; position: absolute; height: 3px; width: 130%; top: 42%; left: -15%; transform: rotate(-13deg); background: linear-gradient(90deg, transparent, #4f9bf9 20%, #f6f9fe 46%, #2d8bff 68%, transparent); box-shadow: 0 0 17px #0b79ff; opacity: .75; }
.ddg-race-title { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ddg-race-title .eyebrow { color: #e5ba66; font-size: 10px; letter-spacing: .2em; margin-bottom: 7px; }
.ddg-race-title h2 { font-size: clamp(23px, 2.9vw, 32px); margin: 0; color: #ffe792; text-shadow: 0 3px 0 #661b23, 0 0 15px #f388362d; font-style: italic; }
.ddg-race-art-wrap { position: relative; height: 210px; display: grid; place-items: center; }
.ddg-race-art { z-index: 1; position: relative; height: 278px; width: min(340px, 85%); object-fit: contain; margin-top: -14px; filter: drop-shadow(0 12px 15px #030a18); }
.ddg-track-lines { position: absolute; height: 62%; width: 90%; bottom: 0; left: 5%; border-radius: 50%; transform: perspective(200px) rotateX(57deg); background: repeating-radial-gradient(ellipse at center, transparent 0 26px, #509fff36 27px 28px, transparent 29px 39px); box-shadow: inset 0 -6px 8px #61a8ff3b; }
.ddg-race-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: -6px; }
.ddg-race-stats > div { display: flex; flex-direction: column; align-items: center; gap: 1px; border: 1px solid #edb65f; border-radius: 14px; padding: 11px 8px 10px; background: linear-gradient(150deg, #192a49, #0b1321 72%); box-shadow: inset 0 1px 3px #ffeba24a, 0 0 12px #f2ae2024; }
.ddg-race-stats strong { color: #ffe880; font-size: 31px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ddg-race-stats span { font-size: 13px; color: #d9e2f0; }
.ddg-race-caption { display: flex; align-items: center; justify-content: center; gap: 15px; position: relative; margin-top: 15px; font-size: 13px; font-weight: 650; letter-spacing: .035em; }
.ddg-checker { display: block; width: 40px; height: 15px; flex-shrink: 0; transform: skewX(-18deg); background: repeating-conic-gradient(#fcd259 0% 25%, transparent 0% 50%) 0 0 / 15px 15px; opacity: .9; }
.ddg-refresh { width: 40px; height: 40px; color: #f6d76e; border-color: #ad7b3a; box-shadow: 0 0 12px #fdcf4d1c; }
.ddg-refresh.is-busy svg { animation: ddg-rotate 1s linear infinite; }
@keyframes ddg-rotate { to { transform: rotate(360deg); } }
.ddg-room-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ddg-room { padding: 21px 20px 18px 26px; }
.ddg-room::before { content: ''; position: absolute; top: 21px; left: 6px; height: 45px; width: 9px; background: repeating-conic-gradient(#ffde69 0% 25%, transparent 0% 50%) 0 0 / 9px 9px; transform: skewY(-9deg); opacity: .85; }
.ddg-room-top { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.ddg-room-top > div { min-width: 0; }
.ddg-room h3 { font-size: 18px; line-height: 1.35; margin: 0 0 6px; overflow-wrap: anywhere; }
.ddg-room-top p { font-size: 12px; line-height: 1.5; margin: 0; }
.ddg-room-top .badge { white-space: nowrap; flex-shrink: 0; }
.ddg-room-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #d8ac5b3b; }
.ddg-room-bottom > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; }
.ddg-room-limits { font-weight: 650; color: #e3eaf4; }
.ddg-room-race { color: #9daec8; font-size: 11px; }
.ddg-room-limits, .ddg-room-race { overflow-wrap: anywhere; }
.ddg-room-bottom .btn { white-space: nowrap; min-height: 37px; padding-inline: 14px; font-size: 12px; }
.ddg-room-bottom .btn svg { width: 14px; height: 14px; }
.ddg-modal-room-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; border-top: 1px solid #bd87553b; border-bottom: 1px solid #bd87553b; padding: 14px 0; font-size: 14px; }
.ddg-modal-room-details > span { color: #aebdd4; }
.ddg-modal-room-details > strong { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ddg-external-host { overflow-wrap: anywhere; color: #ffe28c; }

/* Catalogue: source image 709×1536. Each artwork crop is 312×279.
 * Left source x=31, right x=366. Source y=280,663,1046.
 * CSS background-position uses the remaining image dimensions, 397×1257.
 */
.ddg-catalog-tools { display: flex; gap: 15px; align-items: center; min-width: 0; }
.ddg-provider-tabs { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 5px 2px 7px; }
.ddg-provider-tabs, .ddg-catalog-tools, .ddg-slot-grid { min-width: 0; max-width: 100%; }
.ddg-provider-tabs::-webkit-scrollbar { display: none; }
.ddg-provider-tabs .tab { white-space: nowrap; padding: 10px 17px; font-size: 13px; flex-shrink: 0; }
.ddg-search { position: relative; display: block; width: 240px; flex-shrink: 0; }
.ddg-search > span:first-child { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #abbdd8; pointer-events: none; }
.ddg-search svg { width: 100%; height: 100%; }
.ddg-search input { width: 100%; min-height: 43px; border-radius: 999px; padding: 9px 14px 9px 39px; border: 1px solid #5c7191; background: #0a111e; color: #f7fafe; font-size: 13px; }
.ddg-search input::placeholder { color: #8f9fb6; }
.ddg-catalog-summary { display: flex; align-items: center; justify-content: space-between; margin: -8px 2px -9px; gap: 10px; }
.ddg-catalog-summary .eyebrow { color: #e4c179; font-size: 10px; letter-spacing: .17em; }
.ddg-slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ddg-slot-card { text-align: left; display: flex; flex-direction: column; padding: 0; color: inherit; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.ddg-slot-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px #fff3b533, 0 0 5px #ffd063, 0 0 24px #217ded55; }
.ddg-cover { display: block; width: 100%; aspect-ratio: 312 / 279; position: relative; background-image: url('../assets/games/fishing-atlas.jpeg'); background-repeat: no-repeat; background-size: 227.243589744% 550.537634409%; background-position-x: 7.808564232%; background-position-y: 22.275258552%; overflow: hidden; border-radius: 20px 20px 0 0; }
.ddg-cover-right { background-position-x: 92.191435768%; }
.ddg-cover-row-2 { background-position-y: 52.744630072%; }
.ddg-cover-row-3 { background-position-y: 83.214001591%; }
.ddg-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #080f1c 0%, #080f1c 5%, #080f1cbd 12%, transparent 29%); }
.ddg-slot-info { padding: 0 14px 14px; position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; margin-top: -7px; gap: 12px; }
.ddg-slot-info > strong { font-size: 14px; line-height: 1.35; letter-spacing: -.015em; min-height: 38px; font-weight: 800; }
.ddg-slot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.ddg-provider-tag { display: inline-block; border: 1px solid #99a2b0; background: #babec519; border-radius: 100px; padding: 2px 9px; color: #e3e7ee; font-size: 11px; line-height: 1.35; }
.ddg-rtp-tag { display: inline-block; border: 1px solid #435f88; background: #182b4e88; border-radius: 100px; padding: 2px 7px; color: #cadcf8; font-size: 10px; line-height: 1.35; }
.ddg-slot-play { display: flex; gap: 5px; align-items: center; background: linear-gradient(#fff3b8, #ffd359 30%, #e7a329 80%, #f1ba44); color: #3a2106; border: 1px solid #ffe997; border-radius: 100px; padding: 5px 10px; font-size: 11px; font-weight: 850; box-shadow: inset 0 1px 0 #fff5c2, 0 0 12px #f6ba2f2d; }
.ddg-slot-play svg { width: 12px; height: 12px; }
.ddg-hall-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; margin-bottom: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(12, 75, 151,0.4), rgba(17, 35, 67,0.7)); }
.ddg-hall-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ddg-hall-info strong { font-size: 15px; color: #ffd778; letter-spacing: -0.01em; }
.ddg-hall-info small { font-size: 12px; color: #becce0; }
.ddg-hall-card .btn { flex-shrink: 0; }
.ddg-cover-thumb { position: relative; overflow: hidden; background-image: none; background: radial-gradient(130% 90% at 50% 24%, rgba(255, 215, 120, 0.14), rgba(255, 215, 120, 0) 62%), linear-gradient(180deg, #132a57, #091223); border-radius: 18px 18px 0 0; aspect-ratio: 312 / 240; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ddg-cover-thumb::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, #080f1c 0%, rgba(8, 15, 28, 0.72) 10%, transparent 28%); }
.ddg-cover-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.ddg-cover-fallback { font-size: 38px; font-weight: 900; color: #ffd77833; text-transform: uppercase; z-index: 1; user-select: none; }
.ddg-slot-card:has(.ddg-cover-thumb) .ddg-slot-info { margin-top: 0; padding: 11px 14px 14px; gap: 10px; z-index: 4; }
.ddg-slot-card:has(.ddg-cover-thumb) .ddg-slot-info > strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ddg-more-wrap { display: flex; justify-content: center; margin: 24px 0 10px; }
@media (max-width: 760px) {
  .ddg-hall-card { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .ddg-hall-card .btn { width: 100%; justify-content: center; }
  .ddg-cover-thumb { border-radius: 15px 15px 0 0; }
}
.ddg-catalog-empty { padding: 35px 20px 38px; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ddg-empty-art { width: 150px; height: 150px; object-fit: contain; margin: -18px 0 -8px; }
.ddg-catalog-empty h2 { font-size: 22px; margin: 10px 0; }
.ddg-catalog-empty p { font-size: 14px; line-height: 1.7; max-width: 400px; }
.ddg-catalog-empty .btn { margin-top: 6px; }
.ddg-empty-search { width: 51px; height: 51px; padding: 9px; color: #edc875; margin-bottom: 12px; }
.ddg-empty-search svg { width: 100%; height: 100%; }

/* Inbox */
.ddg-inbox { min-height: 62vh; align-content: start; }
.ddg-inbox-list { display: grid; gap: 18px; }
.ddg-inbox-card { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 12px 19px 12px 10px; cursor: pointer; color: #f8fafe; min-height: 113px; transition: transform .18s, box-shadow .18s; }
.ddg-inbox-card:hover { transform: translateX(2px); box-shadow: inset 0 0 0 2px #fff3b52b, 0 0 20px #f7b51a3d, 0 0 28px #1576ec2e; }
.ddg-inbox-art { display: block; width: 90px; height: 90px; flex: 0 0 90px; position: relative; }
.ddg-inbox-art > img { width: 100%; height: 100%; object-fit: contain; }
.ddg-inbox-art > .ddg-chat-art { transform: scale(1.2); padding: 5px; filter: drop-shadow(0 0 8px #ffcc564d); }
.ddg-inbox-content { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.ddg-inbox-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.ddg-inbox-top > strong { font-size: 21px; line-height: 1.3; min-width: 0; letter-spacing: -.015em; }
.ddg-inbox-meta { color: #9cafcb; font-size: 12px; flex-shrink: 0; }
.ddg-inbox-detail { color: #becce0; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ddg-inbox-chevron { width: 16px; height: 16px; color: #d9aa68; margin-left: 6px; flex-shrink: 0; }
.ddg-inbox-chevron svg { width: 100%; height: 100%; }
.ddg-inbox-featured { background: radial-gradient(ellipse at 0 0, #8d4c1c52, transparent 52%), radial-gradient(ellipse at 100% 100%, #1063c855, transparent 60%), linear-gradient(145deg, #111c30, #070d19); }

/* Conversations */
.ddg-conversation-page { max-width: 900px; width: 100%; margin-inline: auto; }
.ddg-conversation-header { display: flex; align-items: center; gap: 9px; padding: 10px 18px 10px 10px; border-bottom: 1px solid #b582604a; background: linear-gradient(90deg, #1e335b22, #13234100); }
.ddg-conversation-art { width: 66px; height: 66px; flex: 0 0 66px; }
.ddg-conversation-art img { width: 100%; height: 100%; object-fit: contain; }
.ddg-conversation-header > div { flex: 1; min-width: 0; }
.ddg-conversation-header h2 { font-size: 18px; margin: 0 0 4px; }
.ddg-conversation-header p { margin: 0; }
.ddg-conversation-header > .btn { font-size: 12px; white-space: nowrap; }
.ddg-conversation-header > .btn svg { width: 14px; height: 14px; }
.ddg-message-log { display: flex; flex-direction: column; gap: 22px; height: clamp(270px, 44vh, 460px); min-height: 250px; overflow-y: auto; padding: 23px 22px 28px; background: radial-gradient(ellipse at 90% 80%, #22355926, transparent 65%); scrollbar-width: thin; scrollbar-color: #677d9f #0d1524; }
.ddg-message { max-width: min(84%, 590px); align-self: flex-start; min-width: 50px; }
.ddg-message.is-own { align-self: flex-end; }
.ddg-message-empty { margin: auto; max-width: 90%; text-align: center; font-size: 13px; color: #a4b4cd; line-height: 1.7; }
.ddg-message-meta { display: flex; gap: 9px; align-items: center; color: #99a9c2; font-size: 10px; line-height: 1.4; margin-bottom: 7px; flex-wrap: wrap; }
.ddg-message.is-own .ddg-message-meta { justify-content: flex-end; }
.ddg-message-bubble { color: #f6f9fe; font-size: 14px; line-height: 1.65; background: linear-gradient(135deg, #1c2d4b, #131e32); border: 1px solid #596d8b; padding: 11px 15px; border-radius: 3px 17px 17px 17px; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 4px 13px #02050b2e; }
.ddg-message.is-own .ddg-message-bubble { background: linear-gradient(140deg, #5b351a, #1d2d4c 75%); border-color: #be8c48; border-radius: 17px 3px 17px 17px; color: #fff1cc; }
.ddg-message-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 6px; }
.ddg-message-actions button { padding: 5px 0; background: none; border: none; color: #aabad3; font-size: 11px; cursor: pointer; }
.ddg-message-actions button:hover { color: #ffe397; }
.ddg-support-topics { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; padding: 12px 20px 0; border-top: 1px solid #b5826038; }
.ddg-support-topics > span { margin-right: 2px; font-size: 11px; }
.ddg-support-topics .btn { min-height: 30px; padding: 5px 10px; font-size: 11px; }
.ddg-composer { padding: 16px 20px 17px; border-top: 1px solid #b5826038; display: grid; gap: 9px; }
.ddg-support-topics + .ddg-composer { border-top: 0; padding-top: 12px; }
.ddg-composer textarea { width: 100%; min-height: 85px; max-height: 220px; resize: vertical; padding: 12px 14px; font-size: 14px; line-height: 1.6; color: #f8fafe; border-radius: 13px; border: 1px solid #5b708f; background: #070d18; }
.ddg-composer textarea::placeholder { color: #8494ac; }
.ddg-composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ddg-composer-bottom p { margin: 0; font-size: 10px; line-height: 1.5; }
.ddg-composer-bottom .btn { flex-shrink: 0; min-height: 38px; min-width: 90px; font-size: 13px; }
.ddg-composer-bottom .btn svg { width: 15px; height: 15px; }
.ddg-editing-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #e9c884; font-size: 12px; }
.ddg-editing-note .btn { min-height: 27px; padding: 3px 8px; font-size: 11px; }
.ddg-support-link { justify-self: center; font-size: 13px; }
.ddg-support-link svg { width: 15px; height: 15px; }

/* Notices */
.ddg-notice-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ddg-notice-controls .tabs { display: flex; gap: 7px; overflow-x: auto; min-width: 0; padding: 4px 2px; }
.ddg-notice-controls .tab { white-space: nowrap; font-size: 12px; padding: 8px 14px; }
.ddg-notice-controls > .icon-btn { flex-shrink: 0; }
.ddg-notice-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 20px; color: #f4f8fe; cursor: pointer; }
.ddg-notice-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.ddg-notice-card strong { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.ddg-notice-symbol { width: 40px; height: 40px; color: #f5d273; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid #b78d5070; border-radius: 12px; background: #e8ba3010; }
.ddg-notice-symbol svg { width: 23px; height: 23px; }
.ddg-notice-tag { color: #d4b46d; font-size: 10px; }
.ddg-notice-card > svg { width: 17px; height: 17px; color: #a0b1cb; }
.ddg-notice-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }

/* Responsive */
@media (min-width: 1120px) {
  .ddg-race-hero { min-height: 337px; padding-right: 43%; }
  .ddg-race-title { min-height: 78px; }
  .ddg-race-title h2 { max-width: 430px; }
  .ddg-race-art-wrap { position: absolute; top: 6px; right: 0; bottom: 0; height: 100%; width: 44%; }
  .ddg-race-art { width: 100%; height: 100%; max-height: 340px; }
  .ddg-race-stats { margin-top: 30px; }
  .ddg-race-caption { justify-content: flex-start; margin-top: 20px; }
  .ddg-race-title .badge { display: none; }
  .ddg-slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ddg-inbox-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ddg-inbox-card { min-height: 132px; }
}
@media (max-width: 1000px) {
  .ddg-catalog-tools { flex-wrap: wrap; }
  .ddg-provider-tabs { flex-basis: 100%; }
  .ddg-search { width: 100%; }
  .ddg-catalog-summary { margin-top: -5px; }
  .ddg-room-top { flex-wrap: wrap; }
  .ddg-room h3 { font-size: 17px; }
}
@media (max-width: 760px) {
  .ddg-dice-layout { grid-template-columns: 1fr; }
  .ddg-room-list { grid-template-columns: 1fr; }
  .ddg-room-top { flex-wrap: nowrap; }
  .ddg-rule-grid { grid-template-columns: 1fr; }
  .ddg-rule-wide { grid-column: auto; }
  .ddg-rule-art { height: 198px; width: 220px; }
  .ddg-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .ddg-inbox-top > strong { font-size: 19px; }
  .ddg-history td { padding-block: 13px; }
  .ddg-history td:nth-child(2) strong { font-size: 22px; }
}
@media (min-width: 761px) and (max-width: 899px) {
  .ddg-dice-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ddg-wrap { gap: 18px; }
  .ddg-page-intro { flex-wrap: wrap; gap: 12px; align-items: center; }
  .ddg-page-intro h1 { font-size: 26px; margin-bottom: 4px; }
  .ddg-page-intro p { font-size: 12px; }
  .ddg-eyebrow { font-size: 9px; letter-spacing: .14em; }
  .ddg-balance { padding: 6px 9px; gap: 4px; font-size: 9px; margin-left: auto; }
  .ddg-balance strong { font-size: 13px; }
  .ddg-balance-icon { width: 18px; height: 18px; margin-right: 2px; }
  .ddg-panel { border-radius: 19px; }
  .ddg-dice-layout { gap: 18px; }
  .ddg-dice-layout > .page-stack { gap: 16px; }
  .ddg-stage { padding: 13px 15px 20px; }
  .ddg-dice-art { width: 152px; height: 152px; margin: -9px 0 -9px; }
  .ddg-dice-roll { font-size: 43px; min-height: 46px; }
  .ddg-stage h2 { font-size: 18px; margin: 5px 0 11px; }
  .ddg-range-note { font-size: 12px; padding: 6px 11px; }
  .ddg-dice-form { padding: 16px; gap: 11px; }
  .ddg-side-choice { min-height: 75px; border-radius: 14px; }
  .ddg-side-choice strong { font-size: 22px; }
  .ddg-side-choice span { font-size: 12px; }
  .ddg-main-cta { min-height: 51px; font-size: 16px; }
  .ddg-panel-heading { padding: 17px 17px 14px; }
  .ddg-panel-heading h2 { font-size: 19px; }
  .ddg-table-scroll { padding-inline: 15px; }
  .ddg-history th { padding-top: 10px; }
  .ddg-rules-page { gap: 18px; }
  .ddg-rule-hero { padding-top: 0; }
  .ddg-rule-art { height: 185px; width: 205px; margin-top: -10px; margin-bottom: -30px; }
  .ddg-gold-ribbon { font-size: 14px; min-width: 170px; padding-block: 6px; }
  .ddg-rule-hero h1 { font-size: 25px; margin-top: 21px; }
  .ddg-rule-hero p { font-size: 12px; }
  .ddg-rule-grid { gap: 15px; }
  .ddg-rule summary { padding: 16px 16px 14px; gap: 10px; }
  .ddg-rule summary h2 { font-size: 18px; }
  .ddg-rule-symbol { width: 25px; height: 25px; flex-basis: 25px; }
  .ddg-rule-body { padding: 0 16px 17px; font-size: 13px; line-height: 1.8; }
  .ddg-rule-footer { padding: 16px; gap: 14px; }
  .ddg-agreement { font-size: 12px; align-items: flex-start; line-height: 1.6; }
  .ddg-race-hero { padding: 18px 16px 15px; }
  .ddg-race-title { gap: 9px; align-items: flex-start; }
  .ddg-race-title h2 { font-size: 24px; line-height: 1.3; }
  .ddg-race-title .eyebrow { font-size: 9px; }
  .ddg-race-title .badge { font-size: 10px; padding-inline: 8px; }
  .ddg-race-art-wrap { height: 185px; }
  .ddg-race-art { height: 249px; width: 280px; max-width: 100%; }
  .ddg-race-stats { gap: 9px; }
  .ddg-race-stats > div { border-radius: 12px; padding-block: 9px; }
  .ddg-race-stats strong { font-size: 29px; }
  .ddg-race-stats span { font-size: 12px; }
  .ddg-race-caption { margin-top: 14px; gap: 9px; font-size: 11px; letter-spacing: 0; }
  .ddg-checker { width: 28px; height: 13px; background-size: 13px 13px; }
  .ddg-room { padding: 18px 15px 16px 22px; }
  .ddg-room h3 { font-size: 17px; }
  .ddg-room-top { flex-wrap: wrap; gap: 9px; }
  .ddg-room-top p { font-size: 12px; }
  .ddg-room-bottom { margin-top: 13px; padding-top: 12px; gap: 8px; }
  .ddg-room-bottom .btn { padding-inline: 12px; font-size: 11px; }
  .ddg-catalog-tools { gap: 8px; margin-top: -7px; }
  .ddg-provider-tabs { margin-right: -3px; gap: 6px; }
  .ddg-provider-tabs .tab { padding: 9px 14px; font-size: 12px; }
  .ddg-search input { min-height: 41px; }
  .ddg-catalog-summary { margin: -3px 2px -8px; }
  .ddg-slot-grid { gap: 12px; }
  .ddg-slot-card { border-radius: 17px; }
  .ddg-cover { border-radius: 16px 16px 0 0; }
  .ddg-slot-info { padding: 0 10px 10px; gap: 9px; margin-top: -4px; }
  .ddg-slot-card:has(.ddg-cover-thumb) .ddg-slot-info { margin-top: 0; padding: 9px 10px 10px; gap: 8px; }
  .ddg-slot-info > strong { font-size: 12px; line-height: 1.35; min-height: 33px; }
  .ddg-slot-play { padding: 4px 8px; font-size: 10px; }
  .ddg-provider-tag { font-size: 10px; padding: 2px 7px; }
  .ddg-catalog-empty { padding: 28px 18px; min-height: 300px; }
  .ddg-catalog-empty h2 { font-size: 20px; }
  .ddg-catalog-empty p { font-size: 13px; }
  .ddg-inbox-list { gap: 15px; }
  .ddg-inbox-card { gap: 5px; padding: 10px 12px 10px 5px; min-height: 102px; }
  .ddg-inbox-art { width: 75px; height: 75px; flex-basis: 75px; }
  .ddg-inbox-top { gap: 6px; flex-wrap: wrap; align-items: flex-start; }
  .ddg-inbox-top > strong { font-size: 18px; }
  .ddg-inbox-meta { font-size: 10px; }
  .ddg-inbox-meta .badge { font-size: 9px; padding: 3px 8px; }
  .ddg-inbox-content { gap: 5px; }
  .ddg-inbox-detail { font-size: 12px; }
  .ddg-inbox-chevron { width: 12px; height: 12px; margin-left: 0; }
  .ddg-conversation-header { padding: 7px 11px 7px 4px; gap: 5px; }
  .ddg-conversation-art { width: 58px; height: 58px; flex-basis: 58px; }
  .ddg-conversation-header h2 { font-size: 16px; }
  .ddg-conversation-header .small { font-size: 11px; }
  .ddg-conversation-header > .btn { font-size: 10px; padding: 6px 4px; }
  .ddg-message-log { padding: 19px 14px 23px; gap: 20px; height: clamp(260px, 41vh, 380px); }
  .ddg-message { max-width: 90%; }
  .ddg-message-bubble { font-size: 13px; padding: 10px 12px; }
  .ddg-message-meta { font-size: 9px; gap: 7px; }
  .ddg-support-topics { gap: 6px; padding-inline: 14px; }
  .ddg-support-topics .btn { font-size: 10px; padding: 4px 8px; }
  .ddg-composer { padding: 13px 14px 15px; }
  .ddg-composer textarea { font-size: 13px; min-height: 82px; }
  .ddg-composer-bottom { gap: 9px; }
  .ddg-composer-bottom p { font-size: 10px; max-width: 195px; }
  .ddg-composer-bottom .btn { min-width: 77px; padding-inline: 11px; font-size: 12px; }
  .ddg-notice-controls { gap: 8px; }
  .ddg-notice-controls .tabs { gap: 5px; }
  .ddg-notice-controls .tab { font-size: 11px; padding: 8px 10px; }
  .ddg-notice-controls > .icon-btn { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ddg-wrap *, .ddg-wrap *::before, .ddg-wrap *::after { animation: none !important; transition: none !important; }
}
/* iOS keeps the embedded viewport stable while the keyboard opens. */

/* Live Casino — direct provider lobby cards */
.ddg-live-provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.ddg-live-provider-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: 20px; text-align: left; color: inherit; cursor: pointer; background: radial-gradient(ellipse at 18% 0%, rgba(46, 139, 255, 0.22), transparent 58%), linear-gradient(148deg, #0e2144 0%, #071226 62%, #0c1c3b 100%); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.ddg-live-provider-card:hover { transform: translateY(-2px); box-shadow: 0 0 4px #fff4bd, 0 0 18px rgba(46, 139, 255, 0.42), inset 0 0 16px rgba(46, 139, 255, 0.14); }
.ddg-live-provider-card:active { transform: translateY(0); }
.ddg-live-provider-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ddg-live-provider-thumb { position: relative; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: rgba(12, 28, 59, 0.85); border: 1px solid rgba(255, 214, 90, 0.35); flex-shrink: 0; }
.ddg-live-provider-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ddg-live-provider-thumb .ddg-live-provider-fallback { display: none; width: 52px; height: 52px; object-fit: contain; }
.ddg-live-provider-thumb.is-fallback .ddg-live-provider-fallback { display: block; }
.ddg-live-provider-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ddg-live-provider-body h3 { margin: 0; font-size: 20px; font-weight: 800; color: #f4f8ff; line-height: 1.25; }
.ddg-live-provider-body p { margin: 0; font-size: 12.5px; color: #b2c4e0; line-height: 1.45; }
.ddg-live-provider-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 214, 90, 0.16); }
.ddg-live-provider-enter { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #0d1a2e; background: linear-gradient(180deg, #fff5c5 0%, #ffd449 52%, #ffb715 100%); box-shadow: 0 0 10px rgba(255, 213, 63, 0.45); white-space: nowrap; }
.ddg-live-provider-enter .ui-icon { width: 13px; height: 13px; }
@media (max-width: 539px) {
  .ddg-live-provider-grid { grid-template-columns: 1fr; gap: 12px; }
  .ddg-live-provider-card { padding: 15px 16px; border-radius: 17px; }
  .ddg-live-provider-body h3 { font-size: 18px; }
}
@media (max-width: 760px) {
  .ddg-search input, .ddg-composer textarea { font-size: 16px; }
}
