@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #02050d;
  --panel: rgba(7, 13, 29, 0.94);
  --panel-soft: rgba(10, 17, 36, 0.9);
  --line: rgba(116, 139, 196, 0.24);
  --line-bright: rgba(75, 139, 255, 0.48);
  --blue: #32b9ff;
  --violet: #9864ff;
  --gold: #ffd13e;
  --green: #48ed96;
  --text: #f8f9ff;
  --muted: #8f99b4;
  --danger: #ff7f92;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

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

.row {
  display: flex;
}

.col {
  display: flex;
  flex-direction: column;
}

.copy-button{
  justify-content: center;
  align-items: center;
  gap: 10px;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(2, 5, 13, 0.42), rgba(2, 5, 13, 0.62)),
    url("../assets/website-background.png") center top / cover fixed,
    var(--bg);
  font-family: "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(15, 23, 47, 0.82), rgba(4, 8, 19, 0.94)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.game-shell {
  position: relative;
  isolation: isolate;
  width: min(1510px, calc(100% - 26px));
  min-height: calc(100vh - 26px);
  margin: 13px auto;
  padding: 28px 36px 0;
  overflow: hidden;
  /* border: 1px solid rgba(96, 119, 181, 0.2); */
  /* border-radius: 27px;
  background:
    linear-gradient(rgba(2, 6, 16, 0.7), rgba(2, 6, 16, 0.82)),
    url("../assets/body-background.png") center / cover,
    #030713;
  box-shadow:
    inset 0 0 100px rgba(43, 84, 197, 0.07),
    0 35px 110px rgba(0, 0, 0, 0.5); */
}

.game-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.ambient {
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  opacity: 0.13;
  filter: blur(100px);
  pointer-events: none;
}

.ambient--blue {
  top: 290px;
  left: -310px;
  background: #176cff;
}

.ambient--violet {
  right: -330px;
  bottom: 200px;
  background: #8b2cff;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  /* min-height: 165px; */
  padding: 4px 8px 20px;
}

.game-logo {
  display: block;
  width: min(470px, 58vw);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(63, 107, 255, 0.22));
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
}

.sound-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #c5cee4;
  background: rgba(4, 9, 20, 0.76);
  cursor: pointer;
  transition: 160ms ease;
}

.sound-button:hover {
  color: #fff;
  border-color: rgba(82, 166, 255, 0.55);
  transform: translateY(-1px);
}

.sound-off {
  display: none;
}

.sound-muted .sound-on {
  display: none;
}

.sound-muted .sound-off {
  display: inline;
  color: var(--danger);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 23px;
  border: 1px solid rgba(68, 238, 150, 0.52);
  border-radius: 999px;
  color: var(--green);
  background: rgba(2, 13, 17, 0.7);
  box-shadow: inset 0 0 18px rgba(47, 227, 140, 0.04);
  font-size: 0.85rem;
  font-weight: 800;
}

.status-pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.status-pill--rolling {
  color: var(--blue);
  border-color: rgba(50, 185, 255, 0.5);
}

.status-pill--rolling i {
  animation: status-pulse 550ms ease-in-out infinite alternate;
}

.status-pill--used {
  color: #9ca8c4;
  border-color: rgba(142, 157, 193, 0.32);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.84fr) minmax(330px, 0.92fr);
  gap: 20px;
}

.main-column,
.side-column {
  display: grid;
  align-content: start;
  gap: 17px;
}

.player-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  min-height: 116px;
  overflow: hidden;
}

.identity-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
}

.name-field,
.phone-field {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.name-field svg,
.phone-field svg {
  color: #aaa5ff;
}

.name-field > span,
.phone-field > span,
.date-card > span,
.panel-heading > span,
.panel-heading > div > span,
.rewards-heading span,
.result-copy > div:last-child > span,
.arena-heading > span,
.invite-code span {
  color: #a887ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.name-field > div,
.phone-field > div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.name-field input,
.phone-field input {
  min-width: 0;
  width: 100%;
  /* height: 53px; */
  padding: 10px 15px;
  border: 1px solid rgba(126, 145, 197, 0.25);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(2, 7, 17, 0.8);
  box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.3);
}

.name-field input::placeholder,
.phone-field input::placeholder {
  color: #717b96;
}

.field-error {
  margin-left: 52px;
  color: #ff8298;
  font-size: 0.65rem;
  line-height: 1.35;
}

.phone-field input[aria-invalid="true"] {
  border-color: rgba(255, 82, 113, 0.75);
  box-shadow:
    0 0 0 2px rgba(255, 82, 113, 0.1),
    inset 0 1px 8px rgba(0, 0, 0, 0.3);
}

.remember-details {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-left: 52px;
  gap: 8px;
  color: #8e99b5;
  font-size: 0.68rem;
  cursor: pointer;
  user-select: none;
}

.remember-details input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #7d5cff;
  cursor: pointer;
}

.remember-details input:focus-visible {
  outline: 2px solid #39bfff;
  outline-offset: 3px;
}

.remember-details:has(input:checked) span {
  color: #b9c9ff;
}

.player-icon {
  position: relative;
  width: 38px;
  height: 40px;
  flex: 0 0 auto;
}

.player-icon::before,
.player-icon::after {
  position: absolute;
  left: 50%;
  content: "";
  background: linear-gradient(180deg, #c7c9ff, #8e89e7);
  transform: translateX(-50%);
}

.player-icon::before {
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.player-icon::after {
  bottom: 0;
  width: 30px;
  height: 20px;
  border-radius: 17px 17px 5px 5px;
}

.phone-icon {
  display: grid;
  width: 38px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: #aaa5ff;
  font-size: 1.72rem;
  font-style: normal;
  filter: drop-shadow(0 0 8px rgba(106, 77, 255, 0.3));
}

.date-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 27px;
  border-left: 1px solid var(--line);
  background: rgba(10, 16, 32, 0.32);
}

.date-card > span {
  color: #aeb7d1;
  align-items: center;
  gap: 10px;
}

.date-card > span i {
  margin-right: 5px;
  color: #c8d0e5;
  font-style: normal;
}

.date-card strong {
  color: #ffe48d;
  font-size: 1rem;
}

.date-card small {
  color: #7e89a5;
}

.dice-arena {
  position: relative;
  height: clamp(405px, 37vw, 535px);
  overflow: hidden;
  border-color: rgba(218, 176, 57, 0.63);
  border-radius: 22px;
  background:
    linear-gradient(rgba(0, 4, 15, 0.06), rgba(0, 4, 15, 0.08)),
    url("../assets/dice-arena-frame-background.png") center / 100% 100% no-repeat,
    #020718;
  box-shadow:
    inset 0 0 75px rgba(0, 63, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.34);
}

.dice-arena::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 52%, transparent 0 33%, rgba(5, 9, 27, 0.09) 58%, rgba(1, 4, 12, 0.42) 100%),
    linear-gradient(90deg, rgba(3, 7, 18, 0.32), transparent 18% 82%, rgba(3, 7, 18, 0.32));
  pointer-events: none;
}

.arena-heading {
  position: absolute;
  z-index: 8;
  top: 23px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.arena-heading > span {
  color: #6ebdff;
}

.arena-heading small {
  padding: 5px 8px;
  border: 1px solid rgba(111, 138, 197, 0.2);
  border-radius: 999px;
  color: #717d9b;
  background: rgba(3, 8, 20, 0.55);
  font-size: 0.62rem;
}

#diceCanvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: manipulation;
}

#diceCanvas[aria-disabled="true"] {
  cursor: default;
}

.canvas-vignette {
  position: absolute;
  z-index: 4;
  inset: 0;
  background:
    radial-gradient(circle at 27% 41%, rgba(29, 113, 255, 0.08), transparent 22%),
    radial-gradient(circle at 75% 47%, rgba(142, 58, 255, 0.09), transparent 24%);
  pointer-events: none;
}

.canvas-plus {
  position: absolute;
  z-index: 7;
  top: 51%;
  left: 50%;
  width: clamp(54px, 5.2vw, 72px);
  height: clamp(54px, 5.2vw, 72px);
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(21, 143, 255, 0.52));
  transform: translate(-50%, -50%);
  transition: 180ms ease;
  pointer-events: none;
}

.dice-arena.is-rolling .canvas-plus {
  opacity: 0.18;
  transform: translate(-50%, -50%) scale(0.75);
}

.rolling-badge {
  position: absolute;
  z-index: 9;
  bottom: 66px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(68, 172, 255, 0.4);
  border-radius: 999px;
  color: #a8ddff;
  background: rgba(2, 10, 29, 0.82);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  transform: translateX(-50%);
}

.rolling-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  animation: status-pulse 500ms ease-in-out infinite alternate;
}

.total-chip {
  position: absolute;
  z-index: 10;
  bottom: -1px;
  left: 50%;
  display: grid;
  place-items: center;
  min-width: 116px;
  min-height: 89px;
  padding: 14px 18px 11px;
  border: 1px solid rgba(101, 123, 178, 0.34);
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
  background: linear-gradient(180deg, rgba(5, 10, 25, 0.95), rgba(2, 6, 15, 0.98));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.33);
  transform: translateX(-50%);
}

.total-chip span {
  color: #b1b9cf;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.total-chip strong {
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.35rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 201, 34, 0.24);
}

.total-chip.is-revealed {
  animation: total-pop 650ms var(--ease-out);
}

.result-card {
  padding: 22px 24px 17px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.result-card.result--jackpot {
  border-color: rgba(255, 204, 45, 0.68);
  box-shadow: 0 0 38px rgba(255, 197, 31, 0.12);
}

.result-card.result--big {
  border-color: rgba(48, 189, 255, 0.58);
}

.result-card.result--lucky {
  border-color: rgba(91, 237, 108, 0.58);
}

.result-copy {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 82px;
  margin-bottom: 17px;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  /* border: 1px solid rgba(61, 184, 255, 0.62); */
  border-radius: 50%;
  color: #bcf1ff;
  /* background: radial-gradient(circle, rgba(25, 118, 222, 0.5), rgba(5, 12, 29, 0.9)); */
  /* box-shadow: 0 0 24px rgba(48, 161, 255, 0.17); */
  font-size: 1.7rem;
}

.result-icon img{
  width: 100%;
}

.result-copy h1 {
  margin: 4px 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.1;
}

.result-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.roll-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* min-height: 60px; */
  overflow: hidden;
  border: 1px solid #ffe682;
  border-radius: 14px;
  color: #080a10;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(135deg, #df8c04, #ffdc3c 48%, #f3a80b);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -5px 0 rgba(137, 73, 0, 0.3),
    0 13px 28px rgba(245, 167, 13, 0.18);
  cursor: pointer;
  transition: 160ms ease;
  padding: 12px;
}

.roll-button::after {
  position: absolute;
  top: -65%;
  left: -28%;
  width: 20%;
  height: 230%;
  content: "";
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(18deg);
  transition: left 430ms ease;
}

.roll-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.roll-button:hover:not(:disabled)::after {
  left: 110%;
}

.roll-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.36) brightness(0.62);
}

.roll-button strong {
  /* font-family: "Space Grotesk", sans-serif; */
  font-weight: 800;
  font-size: 1.4rem;
  /* font-size: clamp(1.25rem, 2.6vw, 1.8rem); */
  letter-spacing: 0.02em;
}

.button-die,
.footer-die,
.mini-die {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  border-radius: 23%;
  background: linear-gradient(145deg, #fff, #bac1d3);
}

.button-die {
  width: 26px;
  height: 26px;
  margin-right: 12px;
  padding: 7px;
  transform: rotate(10deg);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
}

.button-die i,
.footer-die i,
.mini-die i {
  place-self: center;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #11141b;
}

.button-die i:nth-child(1),
.footer-die i:nth-child(1) {
  grid-area: 1 / 1;
}

.button-die i:nth-child(2),
.footer-die i:nth-child(2) {
  grid-area: 1 / 3;
}

.button-die i:nth-child(3),
.footer-die i:nth-child(3) {
  grid-area: 2 / 2;
}

.button-die i:nth-child(4),
.footer-die i:nth-child(4) {
  grid-area: 3 / 1;
}

.button-die i:nth-child(5),
.footer-die i:nth-child(5) {
  grid-area: 3 / 3;
}

.roll-helper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 18px;
  margin: 10px 0 0;
  color: #7e88a3;
  text-align: center;
  font-size: 0.72rem;
}

.data-notice {
  margin: 8px 0 0;
  color: #707b96;
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
}

.roll-helper > span {
  color: #aeb7ca;
}

.prize-panel,
.rewards-panel,
.history-panel {
  padding: 19px 20px;
}

.panel-heading,
.rewards-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  margin-bottom: 13px;
}

.panel-heading h2,
.rewards-heading h2 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.mini-button {
  min-height: 35px;
  padding: 0 13px;
  border: 1px solid rgba(131, 149, 196, 0.27);
  border-radius: 9px;
  color: #bec5d7;
  background: rgba(7, 11, 24, 0.74);
  font-size: 0.7rem;
  cursor: pointer;
}

.mini-button:hover {
  color: #fff;
  border-color: rgba(72, 165, 255, 0.55);
}

.prize-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  /* display: grid;
  grid-template-columns: 54px 95px minmax(0, 1fr); */
  align-items: center;
  gap: 12px;
  min-height: 78px;
  margin-top: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(124, 142, 192, 0.2);
  border-radius: 14px;
  background: linear-gradient(115deg, rgba(16, 24, 49, 0.8), rgba(6, 10, 23, 0.78));
  transition: 180ms ease;
}

.prize-row img{
  width: 60px;
}

.prize-row.is-active {
  border-color: currentColor;
  box-shadow: 0 0 24px rgba(70, 132, 255, 0.15);
  transform: translateX(-4px);
}

.prize-row > strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
  margin-right: 20px;
}

.prize-row > div:last-child {
  display: grid;
  gap: 3px;
}

.prize-row > div:last-child span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.prize-row > div:last-child b {
  font-size: 0.8rem;
}

.prize-row[data-prize="jackpot"] > strong,
.prize-row[data-prize="jackpot"] > div:last-child span {
  color: var(--gold);
}

.prize-row[data-prize="big"] > strong,
.prize-row[data-prize="big"] > div:last-child span {
  color: #35c9ff;
}

.prize-row[data-prize="lucky"] > strong,
.prize-row[data-prize="lucky"] > div:last-child span {
  color: #69ed64;
}

.prize-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(4, 8, 19, 0.72);
  font-size: 1.45rem;
}

.prize-icon--gold {
  color: var(--gold);
  box-shadow: inset 0 0 17px rgba(255, 202, 44, 0.1);
}

.prize-icon--blue {
  color: #35c9ff;
  box-shadow: inset 0 0 17px rgba(53, 201, 255, 0.1);
}

.prize-icon--green {
  color: #69ed64;
  box-shadow: inset 0 0 17px rgba(105, 237, 100, 0.1);
}

.rewards-heading {
  margin-bottom: 6px;
}

.rewards-heading span {
  color: #7581ff;
}

.rewards-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
}

.rewards-heading > b {
  padding: 8px 13px;
  border: 1px solid rgba(255, 205, 43, 0.52);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(32, 23, 2, 0.44);
  font-size: 0.73rem;
}

.rewards-heading > b i {
  font-style: normal;
}

.rewards-panel > p {
  margin: 0 0 15px;
  color: #9aa4bc;
  font-size: 0.78rem;
  line-height: 1.5;
}

.rewards-panel > p strong {
  color: var(--gold);
}

.invite-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 71px;
  padding: 11px 12px;
  border: 1px solid rgba(122, 140, 190, 0.18);
  border-radius: 12px;
  background: rgba(3, 7, 17, 0.65);
}

.invite-code > div {
  display: grid;
  gap: 5px;
}

.invite-code span {
  color: #7b859f;
  font-size: 0.56rem;
}

.invite-code strong {
  color: var(--gold);
  font-size: 0.93rem;
  letter-spacing: 0.04em;
}

.invite-code button {
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid rgba(132, 83, 255, 0.55);
  border-radius: 10px;
  background: linear-gradient(145deg, #4520a5, #7f38d5);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
/* First , can the roll result telegram combine two result in one massage.
second  */
.share-grid button,
.share-grid a {
  /* min-height: 43px; */
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 150ms ease;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 6px;
  text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.582);
}

.share-grid button svg,
.share-grid a svg {
  filter: drop-shadow(0px 2px 20px black);
}

.share-grid button:hover,
.share-grid a:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.share--whatsapp {
  background: linear-gradient(180deg, #0aa63d, #087923);
}

.share--telegram {
  background: linear-gradient(180deg, #1775e9, #1044a9);
}

.share--line {
  background: linear-gradient(180deg, #31b729, #138616);
}

.share--general {
  background: linear-gradient(180deg, #8036b6, #512078);
}

.rewards-panel > small {
  display: block;
  margin-top: 10px;
  color: #747f9b;
  font-size: 0.63rem;
}

.history-panel {
  min-height: 170px;
}

.history-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 80px;
  border: 1px dashed rgba(132, 149, 202, 0.23);
  border-radius: 12px;
  color: #7d879f;
  background: rgba(3, 7, 17, 0.25);
}

.history-empty span {
  font-size: 1.25rem;
  line-height: 1;
}

.history-empty p {
  margin: 0;
  font-size: 0.72rem;
}

.history-list {
  display: grid;
  gap: 7px;
}

.history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(124, 141, 190, 0.16);
  border-radius: 11px;
  background: rgba(4, 8, 18, 0.6);
}

.history-item > div:nth-child(2) {
  display: grid;
  gap: 2px;
}

.history-item > div:nth-child(2) strong {
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item > div:nth-child(2) span,
.history-item time {
  color: #75809a;
  font-size: 0.61rem;
}

.history-mini-dice {
  display: flex;
  gap: 4px;
}

.mini-die {
  width: 28px;
  height: 28px;
  padding: 5px;
}

.mini-die i {
  opacity: 0;
}

.mini-die i.is-visible {
  opacity: 1;
}

.game-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 110px;
  margin: 21px -36px 0;
  overflow: hidden;
}

.game-footer::before {
  position: absolute;
  inset: 36px 0 0;
  content: "";
  border-top: 1px solid rgba(99, 123, 194, 0.3);
  background:
    linear-gradient(120deg, transparent 0 8%, #346cff 8.2% 8.4%, transparent 8.6% 91%, #a734ff 91.2% 91.4%, transparent 91.6%),
    linear-gradient(180deg, rgba(8, 14, 29, 0.9), rgba(3, 6, 14, 0.98));
}

.footer-wing {
  z-index: 1;
  height: 64px;
  border-top: 2px solid rgba(57, 102, 255, 0.45);
}

.footer-wing--left {
  clip-path: polygon(0 0, 91% 0, 100% 100%, 0 100%);
}

.footer-wing--right {
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

.footer-emblem {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 150px;
  height: 76px;
  padding: 8px 20px;
  border-top: 2px solid rgba(255, 204, 43, 0.55);
  color: var(--gold);
  background: #070b17;
  clip-path: polygon(13% 0, 87% 0, 100% 43%, 87% 100%, 13% 100%, 0 43%);
}

.footer-emblem > span:first-child {
  transform: scaleX(-1);
}

.footer-emblem > span {
  font-size: 1.6rem;
}

.footer-die {
  width: 50px;
  height: 50px;
  padding: 9px;
  border: 5px solid #0b1020;
  box-shadow: 0 0 18px rgba(255, 192, 28, 0.18);
}

.confetti {
  position: fixed;
  z-index: 80;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -30px;
  left: var(--x);
  width: 8px;
  height: 17px;
  background: var(--color);
  box-shadow: 0 0 8px var(--color);
  animation: confetti-fall 3.1s var(--delay) cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.popup-open {
  overflow: hidden;
}

.result-popup[hidden] {
  display: none;
}

.result-popup {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.result-popup__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(29, 89, 211, 0.24), transparent 42%),
    rgba(1, 4, 13, 0.82);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.popup-confetti {
  position: fixed;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.popup-confetti i {
  position: absolute;
  top: -34px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 1.8);
  border-radius: 2px;
  opacity: 0;
  background: var(--color);
  box-shadow: 0 0 10px var(--color);
}

.popup-confetti.is-active i {
  animation:
    popup-confetti-fall 3.7s var(--delay) cubic-bezier(0.18, 0.7, 0.24, 1) both,
    popup-confetti-sway 820ms var(--delay) ease-in-out infinite alternate;
}

.result-popup__card {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 29px;
  border: 1px solid rgba(218, 176, 57, 0.63);
  border-radius: 24px;
   /* background-image: url(assets/website-background.png);
  background-size: cover; */
  /* background:
    radial-gradient(circle at 50% -10%, rgba(31, 112, 255, 0.25), transparent 40%),
    linear-gradient(155deg, rgba(10, 18, 42, 0.99), rgba(3, 7, 19, 0.99));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.72),
    0 0 45px rgba(30, 137, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08); */
    z-index: 6;
  text-align: center;
  animation: result-popup-in 420ms var(--ease-out) both;
}

.popup_bg{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: -1;
  filter: brightness(0.8);
}

.result-popup--jackpot .result-popup__card {
  border-color: rgba(255, 205, 48, 0.76);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72), 0 0 52px rgba(255, 190, 35, 0.23);
}

.result-popup--lucky .result-popup__card {
  border-color: rgba(235, 213, 88, 0.62);
}

.result-popup__close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: #dbe8ff;
  background: rgba(2, 7, 20, 0.72);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.result-popup__close:hover {
  border-color: rgba(84, 191, 255, 0.7);
  background: rgba(23, 62, 121, 0.7);
}

.result-popup__eyebrow,
.result-popup__prize span,
.result-popup__share > span {
  color: #9d7eff;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.result-popup__card h2 {
  margin: 7px 0 21px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 6vw, 2.25rem);
}

.result-popup__dice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 4vw, 22px);
}

.result-popup__dice > div {
  display: grid;
  place-items: center;
  width: clamp(94px, 27vw, 126px);
  aspect-ratio: 1;
  border: 6px solid #d9deeb;
  border-radius: 24px;
  color: #080b14;
  background: linear-gradient(145deg, #fff, #e1e5ef);
  box-shadow:
    inset -8px -9px 14px rgba(103, 111, 136, 0.2),
    inset 5px 5px 9px rgba(255, 255, 255, 0.86),
    0 14px 26px rgba(0, 0, 0, 0.36);
}

.result-popup__dice span {
  color: #657087;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.result-popup__dice strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.7rem, 13vw, 4.2rem);
  line-height: 0.9;
}

.result-popup__dice > b {
  color: #55d5ff;
  font-size: 2rem;
  text-shadow: 0 0 18px #087eff;
}

.result-popup__total {
  margin: 16px auto 12px;
  color: #aeb8d1;
  font-size: 0.84rem;
  font-weight: 800;
}

.result-popup__total strong {
  margin-left: 6px;
  color: var(--gold);
  font-size: 1.42rem;
}

.result-popup__prize {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid rgba(255, 205, 48, 0.35);
  border-radius: 15px;
  background: rgba(255, 195, 31, 0.07);
}

.result-popup__prize strong {
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 7vw, 2.25rem);
}

.result-popup__referral {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(88, 235, 106, 0.38);
  border-radius: 13px;
  color: #c8ffd0;
  background: rgba(31, 157, 59, 0.1);
  text-align: left;
}

.result-popup__referral[hidden] {
  display: none;
}

.result-popup__referral span {
  font-size: 1.45rem;
}

.result-popup__referral p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.45;
}

.result-popup__share {
  margin-top: 19px;
}

.result-popup__share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.result-popup__share-grid a,
.result-popup__share-grid button {
  display: grid;
  place-items: center;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}

.result-popup__share-grid a:hover,
.result-popup__share-grid button:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.result-popup__card {
  width: min(100%, 780px);
  padding: 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(43, 110, 255, 0.2), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(142, 59, 255, 0.16), transparent 28%),
    linear-gradient(155deg, rgba(8, 15, 36, 0.99), rgba(2, 6, 17, 0.995));
}

.result-popup__header {
  padding: 5px 44px 14px;
}

.result-popup__header h2 {
  margin: 5px 0 4px;
}

.result-popup__header p {
  margin: 0;
  color: #8e9ab8;
  font-size: 0.75rem;
}

.result-popup__arena {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 310px;
  overflow: hidden;
  padding: 54px 25px 68px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(0, 5, 20, 0.03), rgba(0, 5, 20, 0.11)),
    url("../assets/dice-arena-frame-background.png") center / 100% 100% no-repeat;
  isolation: isolate;
}

.result-popup__arena::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(13, 89, 255, 0.1);
  box-shadow: 0 0 70px rgba(14, 106, 255, 0.27);
}

.result-popup__dice {
  gap: clamp(21px, 7vw, 55px);
}

.result-popup__dice > .result-popup__die-wrap {
  display: grid;
  place-items: center;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: none;
  box-shadow: none;
}

.result-popup__die-wrap > span {
  margin-bottom: 8px;
  color: #a7b6d9;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 7px #000;
}

.result-popup__die-face {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: clamp(92px, 16vw, 126px);
  aspect-ratio: 1;
  padding: 15%;
  border: 7px solid #e3e6ef;
  border-radius: 25%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(222, 226, 238, 0.98));
  box-shadow:
    inset 7px 7px 12px rgba(255, 255, 255, 0.9),
    inset -10px -11px 15px rgba(94, 102, 126, 0.22),
    0 18px 28px rgba(0, 0, 0, 0.54),
    0 0 24px rgba(108, 190, 255, 0.17);
  transform: rotate(-4deg);
}

.result-popup__die-wrap:nth-of-type(2) .result-popup__die-face {
  transform: rotate(4deg);
}

.result-popup__die-face i {
  position: relative;
  width: 57%;
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle at 42% 37%, #303747 0 8%, #0c101a 40%, #02040a 74%);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.17),
    inset -2px -3px 5px rgba(0, 0, 0, 0.8),
    0 1px 1px rgba(255, 255, 255, 0.42);
}

.result-popup__die-face i.is-visible {
  opacity: 1;
}

.result-popup__dice > b {
  margin-top: 24px;
  font-size: 2.4rem;
}

.result-popup__summary {
  position: absolute;
  right: 8%;
  bottom: 24px;
  left: 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.result-popup__total {
  display: grid;
  min-width: 76px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(57, 178, 255, 0.35);
  border-radius: 12px;
  background: rgba(2, 8, 23, 0.88);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.result-popup__total span,
.result-popup__prize span {
  color: #929fbc;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.result-popup__total strong {
  margin: 1px 0 0;
  font-size: 1.58rem;
}

.result-popup__prize {
  min-width: 180px;
  padding: 9px 17px;
  border-radius: 12px;
  background: rgba(6, 10, 26, 0.9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.result-popup__prize strong {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
}

.result-popup__referral {
  margin: 10px 0 0;
}

.result-popup__lower {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 10px;
  margin-top: 10px;
  text-align: left;
}

.result-popup__history,
.result-popup__invite {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(83, 107, 166, 0.3);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(9, 17, 40, 0.94), rgba(4, 9, 23, 0.97));
}

.result-popup__history[hidden] {
  display: none;
}

.result-popup__history[hidden] + .result-popup__invite {
  grid-column: 1 / -1;
}

.result-popup__section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.result-popup__section-heading span {
  color: #9279ff;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.result-popup__section-heading h3 {
  margin: 4px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
}

.result-popup__section-heading > b {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(255, 199, 25, 0.58);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.64rem;
  font-style: normal;
}

.result-popup__section-heading > b i {
  font-style: normal;
}

.result-popup__history-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.result-popup__history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 7px 9px;
  border: 1px solid rgba(73, 96, 151, 0.25);
  border-radius: 10px;
  background: rgba(1, 6, 18, 0.53);
}

.result-popup__history-dice {
  display: flex;
  gap: 3px;
}

.result-popup__history-item strong {
  display: block;
  overflow: hidden;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-popup__history-item small,
.result-popup__history-item time {
  color: #7f8ba8;
  font-size: 0.56rem;
}

.result-popup__history-item time {
  white-space: nowrap;
}

.result-popup__invite > p {
  margin: 9px 0 11px;
  color: #9aa7c2;
  font-size: 0.69rem;
  line-height: 1.5;
}

.result-popup__invite > p strong {
  color: var(--gold);
}

.result-popup__invite-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 10px 11px;
  border: 1px solid rgba(73, 96, 151, 0.3);
  border-radius: 12px;
  background: rgba(1, 6, 18, 0.62);
}

.result-popup__invite-code > div {
  display: grid;
  gap: 3px;
}

.result-popup__invite-code span {
  color: #7f8ba8;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.result-popup__invite-code strong {
  color: var(--gold);
  font-size: 0.87rem;
  letter-spacing: 0.04em;
}

.result-popup__invite-code button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(158, 96, 255, 0.72);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #5b21b6, #8a39da);
  font: inherit;
  font-size: 0.67rem;
  font-weight: 900;
  cursor: pointer;
}

.result-popup__share-grid {
  margin-top: 8px;
}

.result-popup__share-grid a,
.result-popup__share-grid button {
  min-height: 37px;
  font-size: 0.68rem;
}

.toast {
  position: fixed;
  z-index: 100;
  top: 24px;
  left: 50%;
  padding: 10px 15px;
  border: 1px solid rgba(88, 162, 255, 0.45);
  border-radius: 999px;
  color: #eaf7ff;
  background: rgba(4, 10, 25, 0.92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: 180ms ease;
  backdrop-filter: blur(12px);
}

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

@keyframes status-pulse {
  to {
    opacity: 0.3;
    transform: scale(0.65);
  }
}

@keyframes total-pop {
  0% {
    transform: translateX(-50%) scale(0.72);
  }
  48% {
    border-color: var(--gold);
    box-shadow: 0 0 35px rgba(255, 196, 31, 0.3);
    transform: translateX(-50%) scale(1.12);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes result-popup-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popup-confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }
  8% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 105vh, 0) rotate(var(--spin));
  }
}

@keyframes popup-confetti-sway {
  from {
    margin-left: -8px;
  }
  to {
    margin-left: 8px;
  }
}

@keyframes confetti-fall {
  to {
    opacity: 0;
    transform: translate3d(35px, 110vh, 0) rotate(720deg);
  }
}

@media (max-width: 1120px) {
  .game-shell {
    padding-inline: 22px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.45fr) 330px;
  }

  .game-footer {
    margin-inline: -22px;
  }

  .prize-row {
    grid-template-columns: 50px 78px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .game-logo {
    width: min(570px, 65vw);
  }

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

  .side-column {
    grid-template-columns: 1fr 1fr;
  }

  .history-panel {
    grid-column: span 2;
  }

  .dice-arena {
    height: min(57vw, 510px);
  }
}

@media (max-width: 650px) {
  .game-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
    padding: 16px 10px 0;
    border-radius: 18px;
  }

  .topbar {
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    padding: 0 4px 14px;
  }

  .game-logo {
    width: 100%;
  }

  .topbar-actions {
    align-self: flex-end;
    padding-top: 0;
  }

  .status-pill {
    min-height: 41px;
    padding-inline: 15px;
    font-size: 0.72rem;
  }

  .player-card {
    grid-template-columns: 1fr;
  }

  .identity-fields {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .date-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .dice-arena {
    height: clamp(305px, 88vw, 410px);
  }

  .arena-heading {
    top: 17px;
    left: 18px;
  }

  .arena-heading small {
    display: none;
  }

  .canvas-plus {
    width: 49px;
    height: 49px;
    font-size: 1.8rem;
  }

  .total-chip {
    min-width: 96px;
    min-height: 76px;
  }

  .total-chip strong {
    font-size: 1.9rem;
  }

  .result-card {
    padding: 17px 15px 13px;
  }

  .result-copy {
    min-height: 70px;
  }

  .result-icon {
    width: 55px;
    height: 55px;
  }

  .roll-button {
    min-height: 66px;
  }

  .button-die {
    width: 34px;
    height: 34px;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .history-panel {
    grid-column: auto;
  }

  .game-footer {
    margin-inline: -10px;
  }

  .result-popup {
    padding: 10px;
  }

  .result-popup__card {
    max-height: calc(100dvh - 20px);
    padding: 12px;
    border-radius: 19px;
  }

  .result-popup__header {
    padding: 5px 38px 11px;
  }

  .result-popup__arena {
    min-height: 245px;
    padding: 40px 15px 67px;
    border-radius: 14px;
    background-size: cover;
  }

  .result-popup__die-face {
    width: clamp(84px, 27vw, 112px);
    border-width: 6px;
  }

  .result-popup__lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 410px) {
  .result-popup {
    padding: 10px;
  }

  .result-popup__card {
    max-height: calc(100dvh - 20px);
    padding: 9px;
    border-radius: 19px;
  }

  .result-popup__card h2 {
    margin-bottom: 16px;
  }

  .result-popup__dice > div {
    width: auto;
  }

  .result-popup__share-grid {
    gap: 7px;
  }

  .result-popup__arena {
    min-height: 222px;
    padding: 36px 10px 62px;
  }

  .result-popup__die-face {
    width: min(25vw, 96px);
    border-width: 5px;
  }

  .result-popup__dice {
    gap: 18px;
  }

  .result-popup__dice > b {
    margin-top: 20px;
    font-size: 1.75rem;
  }

  .result-popup__summary {
    right: 5%;
    bottom: 17px;
    left: 5%;
  }

  .result-popup__total {
    min-width: 62px;
    padding: 6px 9px;
  }

  .result-popup__prize {
    min-width: 148px;
    padding: 7px 10px;
  }

  .result-popup__history {
    display: none;
  }

  .result-popup__history,
  .result-popup__invite {
    padding: 14px;
  }

  .result-popup__invite-code {
    align-items: stretch;
    flex-direction: column;
  }

  .prize-panel,
  .rewards-panel,
  .history-panel {
    padding: 16px;
  }

  .prize-row {
    grid-template-columns: 47px 68px minmax(0, 1fr);
    gap: 9px;
  }

  .prize-icon {
    width: 45px;
    height: 45px;
  }

  .prize-row > strong {
    font-size: 1.35rem;
  }

  .invite-code {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-code button {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
