/* Gamer Store: prize wheel + login toast */

.gsx-wheel { display: flex; flex-direction: column; gap: 24px; align-items: center; padding: 22px; }
.gsx-wheel__stage { position: relative; flex: 0 0 auto; width: min(100%, 340px); aspect-ratio: 1 / 1; padding-top: 0; }
.gsx-wheel__disc { width: 100%; height: 100%; border-radius: 50%; will-change: transform; transform: rotate(0deg); box-shadow: var(--shadow, 0 10px 30px rgba(12, 12, 20, .08)); }
.gsx-wheel__svg { display: block; width: 100%; height: 100%; }
.gsx-wheel__pointer { position: absolute; top: -10px; left: 50%; width: 30px; height: 32px; margin-left: -15px; z-index: 2; fill: var(--gsx-text); stroke: var(--gsx-surface); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }

.gsx-wheel__seg { stroke: var(--gsx-surface); stroke-width: 1; }
.gsx-wheel__seg--a { fill: var(--gsx-primary); }
.gsx-wheel__seg--b { fill: var(--gsx-surface2); }
.gsx-wheel__seg--c { fill: var(--gsx-amber); }
.gsx-wheel__seg--j { fill: #c9972b; }
.gsx-wheel__label { font-family: inherit; font-weight: 700; pointer-events: none; }
.gsx-wheel__label--a { fill: var(--gsx-on-primary); }
.gsx-wheel__label--b { fill: var(--gsx-text); }
.gsx-wheel__label--c { fill: var(--gsx-on-amber); }
.gsx-wheel__label--j { fill: #1a1305; font-weight: 800; }
.gsx-wheel__rim { stroke: var(--gsx-surface); stroke-width: 5; }
.gsx-wheel__hub { fill: var(--gsx-surface); stroke: var(--gsx-text); stroke-width: 3; }

.gsx-wheel__panel { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gsx-wheel__title { margin: 0; font-family: var(--font-heading, 'Sora', sans-serif); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.gsx-wheel__intro, .gsx-wheel__hint, .gsx-wheel__streak, .gsx-wheel__note { margin: 0; line-height: 1.5; }
.gsx-wheel__note { font-size: 13px; }
.gsx-wheel__subtitle { margin: 8px 0 0; font-size: 15px; font-weight: 700; }

.gsx-wheel__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.gsx-wheel__stats > div { background: var(--gsx-surface2); border-radius: 14px; padding: 10px 8px; text-align: center; min-width: 0; }
.gsx-wheel__stats dt { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--gsx-muted); }
.gsx-wheel__stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

.gsx-wheel__spin { min-height: 52px; }
.gsx-wheel__spin:focus-visible, .gsx-toast__close:focus-visible { outline: 3px solid var(--gsx-amber); outline-offset: 2px; }
.gsx-wheel__result { margin: 0; min-height: 1.5em; font-weight: 700; color: var(--gsx-primary); }

.gsx-wheel__history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gsx-wheel__history li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; border-radius: 12px; background: var(--gsx-surface2); font-size: 14px; }
.gsx-wheel__history li > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.gsx-wheel__history li > strong { color: var(--gsx-primary); }
.gsx-wheel__history li > small { font-size: 12px; }

/* Two columns (wheel + chances on the left, panel on the right) only when the card itself is wide enough. */
.gsx-wheel-wrap { container-type: inline-size; }
.gsx-wheel__left { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; min-width: 0; }
.gsx-wheel__left .gsx-wheel__odds { width: 100%; margin: 0; }
@container (min-width: 760px) {
	.gsx-wheel { flex-direction: row; align-items: flex-start; padding: 26px; gap: 32px; }
	.gsx-wheel__left { flex: 0 0 340px; width: 340px; }
	.gsx-wheel__stage { width: 100%; }
	.gsx-wheel__panel { flex: 1 1 0; }
}

/* Login toast */
.gsx-toast {
	position: fixed; z-index: 99999; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	max-width: 420px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
	padding: 12px 8px 12px 18px; border-radius: 18px; background: var(--gsx-surface); color: var(--gsx-text);
	border: 1px solid var(--gsx-border); border-left: 5px solid var(--gsx-amber);
	box-shadow: 0 10px 30px rgba(12, 12, 20, .25);
	animation: gsx-toast-in .35s ease-out both;
}
.gsx-toast.is-hidden { display: none; }
.gsx-toast__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.gsx-toast__body a { color: var(--gsx-primary); font-weight: 700; min-height: 24px; }
.gsx-toast__close { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--gsx-muted); font-size: 26px; line-height: 1; cursor: pointer; }
.gsx-toast__close:hover { background: var(--gsx-surface2); }

@keyframes gsx-toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.gsx-wheel__disc { transition: none !important; }
	.gsx-toast { animation: none; }
}

.gsx-wheel__rewards { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gsx-wheel__reward { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--gsx-border, rgba(127,127,127,.25)); border-radius: 12px; }
.gsx-wheel__reward code { padding: 2px 8px; border-radius: 6px; background: var(--gsx-surface2, rgba(127,127,127,.15)); font-weight: 700; letter-spacing: .5px; user-select: all; }
.gsx-wheel__reward--jackpot { border-color: #c9972b; }
.gsx-wheel__reward span { flex-basis: 100%; font-size: 13px; }

.gsx-wheel__odds { margin: 14px 0; border: 1px solid var(--gsx-border, rgba(127,127,127,.25)); border-radius: 12px; padding: 10px 14px; }
.gsx-wheel__odds summary { cursor: pointer; font-weight: 700; }
.gsx-wheel__odds table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.gsx-wheel__odds th, .gsx-wheel__odds td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--gsx-border, rgba(127,127,127,.2)); }
.gsx-wheel__odds td:last-child, .gsx-wheel__odds th:last-child { text-align: right; white-space: nowrap; }
.gsx-wheel__odds p { margin: 10px 0 0; font-size: 13px; }
