:root {
    color-scheme: dark;
    --bg: #050714;
    --bg-2: #0c1232;
    --panel: rgba(18, 22, 55, 0.88);
    --panel-strong: #141832;
    --line: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --muted: #b8bbd9;
    --yellow: #ffd324;
    --orange: #ff8b22;
    --pink: #ef2f9d;
    --blue: #18a3ff;
    --green: #65d636;
    --purple: #8b38ff;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    font-family: Inter, "Thonburi", "Leelawadee UI", "Noto Sans Thai", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 4%, rgba(252, 48, 160, 0.26), transparent 25rem),
        radial-gradient(circle at 88% 12%, rgba(24, 163, 255, 0.22), transparent 22rem),
        linear-gradient(180deg, #040612 0%, #07102b 44%, #050714 100%);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.app-shell {
    width: min(100%, 31rem);
    min-height: 100vh;
    margin: 0 auto;
    padding: 1rem 1rem calc(6.4rem + var(--safe-bottom));
    position: relative;
}

.screen {
    display: grid;
    gap: 1rem;
}

.site-header {
    display: grid;
    gap: 0.6rem;
}

.language-bar {
    display: flex;
    justify-content: flex-end;
}

.language-switcher {
    display: inline-flex;
    gap: 0.15rem;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.language-option {
    min-height: 2.15rem;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 750;
}

.language-option.active {
    background: var(--yellow);
    color: #111322;
}

.language-option:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

.icon-button {
    width: 3rem;
    height: 3rem;
    border-radius: 1.5rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hamburger {
    display: grid;
    gap: 0.28rem;
}

.hamburger span {
    width: 1.5rem;
    height: 0.2rem;
    border-radius: 0.2rem;
    background: currentColor;
}

.brand {
    display: grid;
    justify-items: center;
    line-height: 0.85;
    text-transform: uppercase;
    font-weight: 1000;
    transform: rotate(-2deg);
    filter: drop-shadow(0 0.28rem 0 rgba(0, 0, 0, 0.8));
}

.brand-small {
    font-size: 1.25rem;
    color: #ffffff;
}

.brand-big {
    font-size: 2.45rem;
    background: linear-gradient(135deg, #fff72b 0%, #ff8b22 28%, #f2389c 52%, #7337ff 75%, #10d8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wallet-pill {
    min-width: 7.9rem;
    height: 3.05rem;
    border-radius: 1.7rem;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.coin {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: #641b00;
    font-weight: 1000;
    background: radial-gradient(circle at 35% 25%, #fff79a 0 15%, #ffd32b 31%, #ff961f 60%, #b94a00 100%);
    border: 0.15rem solid #fff06d;
    box-shadow: inset 0 -0.22rem 0 rgba(91, 28, 0, 0.34), 0 0 0.8rem rgba(255, 204, 36, 0.35);
}

.wallet-amount {
    font-size: 1.25rem;
    font-weight: 950;
    white-space: nowrap;
}

.chevron {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.hero-card {
    container-type: inline-size;
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid rgba(230, 57, 255, 0.72);
    background: #190f42;
    box-shadow: var(--shadow), 0 0 2.1rem rgba(197, 42, 255, 0.28);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 823 / 342;
    object-fit: cover;
}

.hero-copy {
    position: absolute;
    inset: 6% auto 6% 4%;
    width: 43%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6cqw;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.65);
}

.hero-copy h2 {
    margin: 0;
    font-size: clamp(1rem, 5.1cqw, 1.45rem);
    line-height: 1.35;
    font-weight: 950;
}

.hero-copy h2 span {
    display: block;
}

.hero-copy h2 span:nth-child(2) {
    color: var(--yellow);
}

.hero-copy h2 span:nth-child(3) {
    color: #ff63c0;
}

.hero-copy p {
    margin: 0;
    font-size: clamp(0.6rem, 2.8cqw, 0.8rem);
    line-height: 1.45;
    font-weight: 750;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    color: #171020;
    background: linear-gradient(180deg, #ffe86b, #ffca1c);
    font-size: clamp(0.6rem, 2.6cqw, 0.75rem);
    line-height: 1.5;
    font-weight: 900;
    text-shadow: none;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.62rem;
}

.quick-card {
    min-height: 6.6rem;
    border-radius: 1rem;
    padding: 0.62rem 0.35rem;
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 54%),
        var(--card-bg, rgba(17, 20, 50, 0.95));
    border: 1px solid var(--card-line, rgba(255, 255, 255, 0.16));
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.45rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
}

.quick-card strong {
    font-size: 0.75rem;
    line-height: 1.45;
    text-align: center;
    text-transform: uppercase;
}

.quick-icon {
    width: 2.75rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 1000;
    color: #111322;
    background: linear-gradient(145deg, var(--icon-a), var(--icon-b));
    box-shadow: inset 0 -0.28rem 0 rgba(0, 0, 0, 0.2), 0 0.45rem 1rem rgba(0, 0, 0, 0.28);
}

.quick-badge {
    position: absolute;
    right: 0.48rem;
    top: 0.48rem;
    min-width: 1rem;
    min-height: 1rem;
    border-radius: 1rem;
    padding: 0.08rem 0.38rem;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--pink);
    font-size: 0.68rem;
    font-weight: 950;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.4rem;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.game-card {
    position: relative;
    overflow: hidden;
    min-height: 17.4rem;
    border-radius: 1rem;
    border: 1px solid var(--accent, rgba(255, 255, 255, 0.18));
    background: var(--panel-strong);
    box-shadow: 0 0 1.4rem color-mix(in srgb, var(--accent, #7337ff) 22%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.game-card img {
    width: 100%;
    height: 100%;
    min-height: 17.4rem;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 0.4rem;
    padding: 3.5rem 0.7rem 0.7rem;
    background: linear-gradient(180deg, transparent 0%, rgba(3, 5, 18, 0.44) 28%, rgba(3, 5, 18, 0.92) 100%);
}

.game-type {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    text-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.55);
}

.game-card-title {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 2px 4px #000;
    overflow-wrap: anywhere;
}

.play-button {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 2.8rem;
    width: 100%;
    padding: 0.45rem 2.1rem 0.6rem;
    border-radius: 0.65rem;
    color: #fff;
    font-weight: 1000;
    line-height: 1.45;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--button-a, #ffdf37), var(--button-b, #ff8c00));
    box-shadow: inset 0 -0.28rem 0 rgba(0, 0, 0, 0.22), 0 0.55rem 1.1rem rgba(0, 0, 0, 0.28);
}

.play-label {
    min-width: 0;
}

.play-arrow {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 0.9em;
}

.play-button.yellow {
    color: #161000;
}

.status-chip {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    min-height: 2rem;
    padding: 0.4rem 0.6rem;
    border-bottom-right-radius: 0.75rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 1000;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--pink), #ff5fbd);
}

.status-chip.soon {
    background: linear-gradient(135deg, #1175ff, #5fb8ff);
}

.banner-action {
    container-type: inline-size;
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 221, 76, 0.55);
    background: #ffed9f;
    box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.24);
}

.banner-action img {
    width: 100%;
    aspect-ratio: 823 / 152;
    object-fit: cover;
}

.invite-copy {
    position: absolute;
    inset: 6% auto 6% 3.5%;
    width: 28%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7cqw;
    text-align: left;
    color: #421373;
}

.invite-copy strong {
    font-size: clamp(0.65rem, 3.3cqw, 0.95rem);
    line-height: 1.35;
    font-weight: 950;
}

.invite-copy small {
    color: #191029;
    font-size: clamp(0.43rem, 2.05cqw, 0.64rem);
    line-height: 1.45;
    font-weight: 750;
}

.invite-cta {
    position: absolute;
    inset: 20% 4.5% 20% auto;
    width: 11%;
    display: grid;
    place-content: center;
    color: #fff;
    font-size: clamp(0.7rem, 3.3cqw, 1rem);
    font-weight: 950;
    line-height: 1.4;
    text-align: center;
}

.panel {
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    background: rgba(16, 20, 48, 0.86);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.stack {
    display: grid;
    gap: 0.75rem;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.metric {
    border-radius: 0.9rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.metric strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.2rem;
    line-height: 1.45;
}

.primary-button,
.secondary-button,
.link-button {
    min-height: 2.85rem;
    border-radius: 0.8rem;
    padding: 0.7rem 0.9rem;
    font-weight: 950;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: inset 0 -0.25rem 0 rgba(0, 0, 0, 0.24), 0 0.55rem 1rem rgba(155, 42, 255, 0.26);
}

.secondary-button {
    color: #0b1029;
    background: linear-gradient(135deg, #fff179, var(--yellow));
}

.link-button {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.share-grid .link-button {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.reward-rules {
    display: grid;
    gap: 0.6rem;
}

.reward-rule {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    min-height: 3.6rem;
    padding: 0.65rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.reward-rule strong {
    color: var(--yellow);
    font-size: 1rem;
    font-weight: 1000;
    line-height: 1.45;
    white-space: nowrap;
}

.reward-rule span {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.5;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.amount-button {
    min-height: 4.1rem;
    border-radius: 0.85rem;
    padding: 0.65rem;
    color: #111322;
    background: linear-gradient(135deg, #fff179, var(--yellow));
    box-shadow: inset 0 -0.22rem 0 rgba(0, 0, 0, 0.2), 0 0.45rem 1rem rgba(0, 0, 0, 0.24);
}

.amount-button span,
.amount-button small {
    display: block;
    text-align: center;
}

.amount-button span {
    font-size: 1.2rem;
    font-weight: 1000;
    line-height: 1.05;
}

.amount-button small {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 850;
    opacity: 0.82;
}

.transaction-list {
    display: grid;
    gap: 0.6rem;
}

.transaction {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem;
    border-radius: 0.82rem;
    background: rgba(255, 255, 255, 0.07);
}

.transaction time {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.transaction strong {
    display: block;
    font-size: 0.88rem;
}

.transaction span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.points-plus {
    color: #78f055;
    font-weight: 1000;
}

.points-minus {
    color: #ff8a7c;
    font-weight: 1000;
}

.me-card {
    display: grid;
    gap: 0.85rem;
}

.profile-mark,
.profile-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 1.1rem;
}

.profile-mark {
    display: grid;
    place-items: center;
    color: #151220;
    background: linear-gradient(135deg, #ffd424, #ff37a5 52%, #1bd8ff);
    font-size: 1.4rem;
    font-weight: 1000;
}

.profile-avatar {
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.small-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(0.7rem + var(--safe-bottom));
    z-index: 20;
    width: min(calc(100% - 2rem), 29rem);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.2rem;
    padding: 0.35rem;
    border-radius: 1.15rem;
    background: rgba(11, 14, 36, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
}

.nav-item {
    min-height: 3.65rem;
    border-radius: 0.85rem;
    color: #8d91b3;
    background: transparent;
    display: grid;
    place-items: center;
    gap: 0.12rem;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.nav-item .nav-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.nav-item.active {
    color: var(--yellow);
    background: linear-gradient(180deg, rgba(255, 211, 36, 0.16), transparent);
}

.game-screen {
    min-height: 100vh;
}

.game-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.game-stage {
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #090d21;
    box-shadow: var(--shadow);
}

.game-canvas-wrap {
    position: relative;
    aspect-ratio: 9 / 13;
    min-height: 27rem;
    background: linear-gradient(180deg, #111a4f, #070915);
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.game-frame-wrap,
.game-frame-loading {
    position: relative;
    aspect-ratio: 9 / 13;
    min-height: 27rem;
    background: linear-gradient(180deg, #111a4f, #070915);
}

.game-frame {
    width: 100%;
    height: 100%;
    min-height: 27rem;
    display: block;
    border: 0;
    background: #070915;
}

.game-frame-loading {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 950;
}

.game-hud {
    position: absolute;
    inset: 0.8rem 0.8rem auto;
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    pointer-events: none;
}

.hud-pill {
    min-width: 5.8rem;
    padding: 0.48rem 0.65rem;
    border-radius: 1rem;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 950;
}

.game-controls {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem;
}

.game-title {
    margin: 0;
    font-size: 1.45rem;
}

.form-grid {
    display: grid;
    gap: 0.7rem;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.field input {
    width: 100%;
    min-height: 3rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.17);
    padding: 0 0.82rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    outline: 0;
}

.field input:focus {
    border-color: rgba(255, 211, 36, 0.9);
    box-shadow: 0 0 0 0.18rem rgba(255, 211, 36, 0.18);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    align-items: end;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.58);
}

.modal {
    width: min(100%, 29rem);
    margin: 0 auto;
    border-radius: 1.1rem;
    padding: 1rem;
    background: #121631;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.55);
}

.modal h2 {
    margin: 0;
    font-size: 1.25rem;
}

.google-button-slot {
    position: relative;
    height: 2.75rem;
    min-height: 2.75rem;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 21.5rem;
    justify-self: center;
    border-radius: 999px;
    padding: 0;
    background: #202124;
    border: 0;
    overflow: hidden;
}

.google-visual-button,
.google-native-button {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.google-visual-button {
    z-index: 1;
    display: grid;
    grid-template-columns: 2.2rem 1fr 2.2rem;
    align-items: center;
    min-height: 2.75rem;
    color: #f8f8f8;
    background: #202124;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
    box-shadow: inset 0 -0.12rem 0 rgba(0, 0, 0, 0.22);
}

.google-logo-dot {
    width: 2rem;
    height: 2rem;
    margin-left: 0.22rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #4285f4;
    background: #ffffff;
    font-size: 1.05rem;
    font-weight: 950;
}

.google-native-button {
    z-index: 2;
    overflow: hidden;
    opacity: 0.01;
}

.google-native-button > div {
    width: 100% !important;
    height: 100% !important;
}

.google-native-button iframe {
    width: 100% !important;
    height: 2.75rem !important;
    border: 0 !important;
    border-radius: 999px !important;
    outline: 0 !important;
    clip-path: none;
}

.pin-display {
    min-height: 4.5rem;
    border-radius: 0.95rem;
    display: grid;
    place-items: center;
    color: #111322;
    background: linear-gradient(135deg, #fff179, var(--yellow));
    font-size: 2rem;
    font-weight: 1000;
    letter-spacing: 0;
    box-shadow: inset 0 -0.28rem 0 rgba(0, 0, 0, 0.18), 0 0.7rem 1.4rem rgba(0, 0, 0, 0.26);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(5.6rem + var(--safe-bottom));
    z-index: 60;
    width: min(calc(100% - 2rem), 28rem);
    min-height: 2.8rem;
    transform: translate(-50%, 1rem);
    opacity: 0;
    pointer-events: none;
    display: grid;
    place-items: center;
    padding: 0.72rem 0.95rem;
    border-radius: 0.9rem;
    color: #0d1122;
    background: var(--yellow);
    font-weight: 950;
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.35);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.empty-state {
    min-height: 8rem;
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
}

.empty-state.compact {
    min-height: 3rem;
    padding: 0.75rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.07);
}

.loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    font-weight: 950;
}

@media (min-width: 36rem) {
    .app-shell {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .game-card .play-button {
        padding-left: 0.45rem;
        padding-right: 1.55rem;
        font-size: 0.83rem;
    }

    .game-card .play-label {
        white-space: nowrap;
    }

    .game-card .play-arrow {
        right: 0.55rem;
    }
}

@media (max-width: 23rem) {
    .app-shell {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .brand-small {
        font-size: 1rem;
    }

    .brand-big {
        font-size: 2rem;
    }

    .wallet-pill {
        min-width: 6.9rem;
    }

    .wallet-amount {
        font-size: 1rem;
    }

    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-card {
        min-height: 5.6rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .share-grid,
    .button-row {
        grid-template-columns: 1fr;
    }
}
