/* চমক মিয়া · assets/css/03-draw-stage.css
   লাইভ ড্র স্টেজ (ফুল স্ক্রিন শো)। */

/* ===================== v2: live draw stage ===================== */
html.sg-on {
  overflow: hidden;
}
html.sg-on .conf {
  z-index: 400;
}
.sg {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: radial-gradient(120% 90% at 50% 0%, #3d1a8f 0%, #24095f 45%, #0d0326 100%);
  color: #fff1dc;
  overflow: auto;
  display: flex;
  flex-direction: column;
  font-family: 'Hind Siliguri', sans-serif;
  color-scheme: dark;
}
.sg:fullscreen {
  overflow: auto;
}
.sg > * {
  flex-shrink: 0;
}
.sg-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.sg-rays {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 260vmax;
  height: 260vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(#ffa51f12 0 7deg, transparent 7deg 14deg);
  will-change: transform;
}
.sg-cloud {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(1150px, 98vw);
  height: min(620px, 78vh);
  transform: translate(-50%, -50%);
  will-change: transform;
}
.sg-cloud i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  font:
    800 calc(13px + var(--s) * 9px)/1.4 'Baloo Da 2',
    sans-serif;
  font-style: normal;
  color: #24095f;
  background: #ffe0a6;
  border-radius: 6px;
  padding: 0 9px;
  opacity: calc(0.12 + var(--s) * 0.22);
  box-shadow: 0 3px 0 #e8261b;
  animation: bob var(--d) ease-in-out infinite alternate;
  transition:
    opacity 0.4s,
    scale 0.4s;
}
.sg-cloud.hot i {
  opacity: calc(0.32 + var(--s) * 0.4);
}
.sg-cloud i.gone {
  opacity: 0;
  scale: 2.4;
}
.sg-wm {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  font:
    800 clamp(80px, 16vw, 260px) 'Baloo Da 2',
    sans-serif;
  color: #ffffff1c;
  rotate: -16deg;
  z-index: 2;
}
.sg-demo {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: repeating-linear-gradient(45deg, #e8261b 0 16px, #b31b12 16px 32px);
  color: #fff;
  text-align: center;
  font:
    800 17px 'Baloo Da 2',
    sans-serif;
  padding: 6px;
}
.sg-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px 14px;
  padding: 12px max(3vw, 14px) 6px;
  flex-wrap: wrap;
}
.sg-lock {
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    800 24px 'Baloo Da 2',
    sans-serif;
  color: #fff;
}
.sg-lock .ic {
  width: 42px;
  height: 42px;
}
.sg-live {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #e8261b;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 14px 2px 10px;
  letter-spacing: 0.02em;
}
.sg-live i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: sgblink 1s ease-in-out infinite;
}
@keyframes sgblink {
  50% {
    opacity: 0.2;
  }
}
.sg-rn {
  color: #ffd27a;
  font-weight: 700;
}
.sg-tools {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.sg .sg-tools button {
  width: 46px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  background: #ffffff14;
  border: 2px solid #ffffff33;
  color: #fff1dc;
  border-radius: 12px;
  box-shadow: none;
  font-size: 20px;
  justify-content: center;
}
.sg-lad {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px max(3vw, 14px) 10px;
  scrollbar-width: thin;
}
.sg .sg-lad button {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 0;
  margin: 0;
  padding: 6px 12px;
  border-radius: 12px;
  background: #ffffff10;
  border: 2px solid #ffffff26;
  color: #d9cff5;
  box-shadow: none;
  font:
    600 14px/1.3 'Hind Siliguri',
    sans-serif;
  text-align: left;
  cursor: pointer;
}
.sg-lad small {
  font-size: 12px;
  font-weight: 800;
  color: #ffd27a;
}
.sg-lad span {
  font-size: 12px;
  opacity: 0.85;
}
.sg .sg-lad button.done {
  background: #0f7a4f66;
  border-color: #3fd69a;
  color: #fff;
}
.sg-lad .done small::after {
  content: ' ✓';
}
.sg .sg-lad button.next {
  border-color: #ffa51f;
  color: #fff;
  animation: glowp 1.6s ease-in-out infinite;
}
.sg .sg-lad button.on {
  background: #ffa51f;
  border-color: #fff;
  color: #24095f;
}
.sg-lad .on small {
  color: #24095f;
}
.sg .sg-lad button:disabled {
  opacity: 0.4;
  cursor: default;
}
.sg-main {
  position: relative;
  z-index: 3;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 6px max(3vw, 14px) 56px;
  text-align: center;
}
.sg-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.sg-ttl small {
  display: block;
  color: #ffd27a;
  font-weight: 700;
  font-size: 17px;
}
.sg-ttl h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1;
  text-shadow:
    0 5px 0 #e8261b,
    0 0 40px #ffa51f66;
}
.sg-ttl p {
  margin: 4px 0 0;
  font-size: clamp(18px, 2.4vw, 26px);
}
.sg-ttl p b {
  color: #ffd27a;
}
.sg-art {
  background: #fff8ee;
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 6px 0 #e8261b;
  animation: bob 2.4s ease-in-out infinite alternate;
}
.sg-mach {
  position: relative;
  background: linear-gradient(#34117d, #1a0650);
  border: 4px solid #ffa51f;
  border-radius: 30px;
  padding: 14px clamp(14px, 4vw, 44px) 16px;
  box-shadow:
    0 10px 0 #e8261b,
    0 0 80px #ffa51f40;
}
.sg-mach::before,
.sg-mach::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffa51f;
  box-shadow:
    0 0 0 4px #24095f,
    0 0 18px #ffa51f;
}
.sg-mach::before {
  left: -11px;
}
.sg-mach::after {
  right: -11px;
}
.sg.busy .sg-mach::before,
.sg.busy .sg-mach::after {
  animation: sgblink 0.4s infinite;
}
.sg-who {
  min-height: 1.6em;
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 700;
  color: #fff;
}
.sg-who b {
  color: #ffd27a;
}
.sg-pz {
  display: inline-block;
  margin-left: 8px;
  background: #e8261b;
  color: #fff;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.7em;
  vertical-align: middle;
}
.sg-dots::after {
  content: '';
  display: inline-block;
  width: 1.4em;
  text-align: left;
  animation: sgdots 1s steps(4) infinite;
}
@keyframes sgdots {
  0% {
    content: '';
  }
  25% {
    content: '.';
  }
  50% {
    content: '..';
  }
  75% {
    content: '...';
  }
}
.sg-ctl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 70px;
}
.sg .sg-go {
  margin: 0;
  min-height: 62px;
  padding: 10px 34px;
  border-radius: 999px;
  background: #e8261b;
  color: #fff;
  border: 3px solid #ffa51f;
  box-shadow:
    0 7px 0 #7a0f08,
    0 0 30px #e8261b88;
  font:
    800 clamp(20px, 2.6vw, 28px) 'Baloo Da 2',
    sans-serif;
  cursor: pointer;
  justify-content: center;
}
.sg .sg-go:hover {
  translate: 0 -2px;
}
.sg .sg-go:active {
  translate: 0 4px;
  box-shadow: 0 3px 0 #7a0f08;
}
.sg .sg-skip {
  background: #ffffff1a;
  border-color: #ffffff55;
  box-shadow: none;
  font-size: 18px;
  min-height: 48px;
}
.sg .sg-nx {
  background: #ffa51f;
  color: #24095f;
  border-color: #fff;
  box-shadow: 0 7px 0 #b86e00;
}
.sg-hint {
  font-size: 13px;
  color: #b9add9;
}
.sg-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #ffffff12;
  border: 2px solid #ffa51f;
  border-radius: 20px;
  padding: 16px 22px;
  max-width: 640px;
}
.sg-end b {
  font:
    800 clamp(24px, 3.4vw, 38px) 'Baloo Da 2',
    sans-serif;
  color: #fff;
}
.sg-end .row {
  justify-content: center;
}
.sg .sg-end button {
  margin: 0;
}
.sg-wins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
  width: min(1240px, 100%);
}
.sg-wins.many .sg-card {
  padding: 6px 10px 8px;
}
.sg-wins.many .sg-card b {
  font-size: 28px;
}
.sg-wins.big {
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
}
.sg-card {
  background: #fff8ee;
  color: #24095f;
  border-radius: 16px;
  padding: 8px 12px 10px;
  border: 3px solid #ffa51f;
  box-shadow: 0 5px 0 #e8261b;
  animation: sgpop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.sg-wins.calm .sg-card {
  animation: none;
}
.sg-card small {
  display: block;
  color: #e8261b;
  font-weight: 800;
  font-size: 12px;
}
.sg-card b {
  display: block;
  font:
    800 32px/1.1 'Baloo Da 2',
    sans-serif;
}
.sg-card span {
  font-size: 14px;
  font-weight: 600;
}
.sg-card.big b {
  font-size: 54px;
}
.sg-card.big {
  padding: 12px 16px 14px;
}
@keyframes sgpop {
  from {
    transform: translateY(-80px) scale(0.3) rotate(-12deg);
    opacity: 0;
  }
}
.sg-cele {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 6;
}
.sg-cele div {
  background: #ffa51f;
  color: #24095f;
  font:
    800 clamp(44px, 9vw, 120px) 'Baloo Da 2',
    sans-serif;
  padding: 6px 44px;
  border-radius: 34px;
  border: 6px solid #fff;
  box-shadow:
    0 12px 0 #e8261b,
    0 0 80px #ffa51f;
  animation: sgcele 2.6s both;
}
@keyframes sgcele {
  0% {
    transform: scale(0) rotate(-20deg);
  }
  12% {
    transform: scale(1.12) rotate(3deg);
  }
  22%,
  80% {
    transform: scale(1) rotate(-2deg);
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
@media (max-width: 640px) {
  .sg-rn {
    display: none;
  }
  .sg-lock b {
    font-size: 20px;
  }
  .sg-head {
    gap: 8px;
  }
  .sg-art {
    display: none;
  }
  .sg-wins {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .sg-card b {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sg-cloud,
  .sg-rays,
  .sg-cloud i {
    animation: none;
  }
}

/* v3 stage: Mia, jhola, slot reel, hold-to-shake */
.sg-live.demo {
  background: #ffa51f;
  color: #24095f;
}
.sg-live.demo i {
  background: #24095f;
}
.sg-show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2.4vw, 34px);
  width: min(1240px, 100%);
}
.sg-mia {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 270px;
}
.sg-mia img {
  width: clamp(74px, 9vw, 124px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffa51f;
  box-shadow: 0 6px 0 #e8261b;
  background: #fff;
  animation: bob 2.2s ease-in-out infinite alternate;
}
.sg.busy .sg-mia img {
  animation: sgnod 0.5s ease-in-out infinite alternate;
}
@keyframes sgnod {
  from {
    transform: rotate(-7deg) translateY(-3px);
  }
  to {
    transform: rotate(7deg) translateY(3px);
  }
}
.sg-bub {
  position: relative;
  order: -1;
  background: #fff;
  color: #24095f;
  font:
    800 clamp(15px, 1.7vw, 21px)/1.25 'Baloo Da 2',
    sans-serif;
  padding: 9px 15px;
  border-radius: 18px;
  box-shadow: 0 4px 0 #e8261b;
  text-align: center;
  min-width: 9em;
}
.sg-bub::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  translate: -50% 0;
  border: 10px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}
.sg-bub.pop {
  animation: sgbub 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes sgbub {
  from {
    transform: scale(0.4) rotate(-6deg);
    opacity: 0;
  }
}
.sg-bagw {
  justify-self: start;
  position: relative;
  width: clamp(110px, 13vw, 190px);
  filter: drop-shadow(0 0 22px #ffa51f66);
}
.sg-bagw .bagsvg {
  animation: jiggle 2.8s ease-in-out infinite;
}
.sg-bagw.shake .bagsvg {
  animation: none;
}
.sg-bagw.shake {
  animation: sgshake 0.12s linear infinite;
}
@keyframes sgshake {
  25% {
    transform: translate(calc(var(--ch, 1) * -7px), calc(var(--ch, 1) * 3px)) rotate(calc(var(--ch, 1) * -7deg));
  }
  75% {
    transform: translate(calc(var(--ch, 1) * 7px), calc(var(--ch, 1) * -3px)) rotate(calc(var(--ch, 1) * 7deg));
  }
}
.sg-bagw.open .flap {
  transform: translateY(-58px) rotate(-16deg);
}
.sg-bagw.open .light {
  opacity: 1;
  animation: glowp 1.6s ease-in-out infinite;
}
.sg-reel {
  display: flex;
  gap: clamp(4px, 1vw, 10px);
  justify-content: center;
  margin: 4px 0 10px;
}
.sg-c {
  position: relative;
  display: block;
  width: clamp(46px, 8.6vw, 100px);
  height: 1.3em;
  overflow: hidden;
  font:
    800 clamp(40px, 7.6vw, 92px)/1 'Baloo Da 2',
    sans-serif;
  color: #24095f;
  background: linear-gradient(#d9cff5, #fff 24%, #fff 76%, #d9cff5);
  border-radius: 16px;
  box-shadow:
    inset 0 -7px 0 #0001,
    0 5px 0 #b86e00;
  text-align: center;
}
.sg-c::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(#24095f33, transparent 24%, transparent 76%, #24095f33);
}
.sg-s {
  display: block;
  will-change: transform;
  transition: opacity 0.35s ease;
}
.sg-s i {
  display: block;
  height: 1.3em;
  line-height: 1.3em;
  font-style: normal;
}
.sg-reel.idle .sg-s {
  opacity: 0;
}
.sg-c::after {
  content: '?';
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.sg-reel.idle .sg-c::after {
  opacity: 1;
  transform: none;
}
.sg-reel.idle .sg-c {
  animation: sgq 2.6s ease-in-out infinite;
}
.sg-reel.idle .sg-c:nth-child(2) {
  animation-delay: 0.15s;
}
.sg-reel.idle .sg-c:nth-child(3) {
  animation-delay: 0.3s;
}
.sg-reel.idle .sg-c:nth-child(4) {
  animation-delay: 0.45s;
}
.sg-reel.idle .sg-c:nth-child(5) {
  animation-delay: 0.6s;
}
@keyframes sgq {
  0%,
  70%,
  100% {
    transform: none;
  }
  80% {
    transform: translateY(-7px) rotate(-4deg);
  }
  90% {
    transform: rotate(3deg);
  }
}
.sg-c.fast .sg-s {
  filter: blur(1.3px);
}
.sg-c {
  transition: background 0.3s;
}
.sg-c.lk {
  background: linear-gradient(#fff3b0, #ffa51f 70%, #ffd27a);
}
.sg-reel.hit .sg-c {
  animation: sghit 0.6s ease-out;
}
@keyframes sghit {
  35% {
    transform: scale(1.12) translateY(-6px);
  }
}
.sg .sg-charge {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.1s;
}
.sg:not(.charge) .sg-charge {
  animation: glowp 1.5s ease-in-out infinite;
}
.sg .sg-charge::before {
  content: '';
  position: absolute;
  inset: 0;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, #ffa51f, #ffe066);
  z-index: -1;
}
.sg.charge .sg-charge {
  color: #24095f;
  transform: scale(calc(1 + var(--p, 0) * 0.08));
}
.sg-fly {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  font:
    800 16px/1.4 'Baloo Da 2',
    sans-serif;
  font-style: normal;
  color: #24095f;
  background: #ffe0a6;
  border-radius: 5px;
  padding: 0 7px;
  box-shadow: 0 2px 0 #e8261b;
  white-space: nowrap;
}
.sg-flying {
  position: fixed;
  z-index: 8;
  margin: 0;
  pointer-events: none;
  box-shadow: 0 14px 40px #000a;
  animation: none;
}
.sg-cele.cd div {
  font-size: clamp(150px, 26vw, 320px);
  line-height: 1;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: #ffd27a;
  text-shadow:
    0 10px 0 #e8261b,
    0 0 70px #ffa51f;
  animation: sgcd 0.85s both;
}
@keyframes sgcd {
  0% {
    transform: scale(2.6);
    opacity: 0;
  }
  30% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.5);
    opacity: 0;
  }
}
.sg.shake .sg-main {
  animation: sgscr 0.6s;
}
@keyframes sgscr {
  10%,
  50%,
  90% {
    transform: translate(-9px, 4px);
  }
  30%,
  70% {
    transform: translate(9px, -4px);
  }
}
.sg-pick {
  margin-top: 8px;
  background: #ffffff10;
  border: 1px dashed #ffffff55;
  border-radius: 12px;
  padding: 6px 12px;
  width: min(440px, 100%);
  text-align: left;
}
.sg-pick summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #ffd27a;
}
.sg-pick input {
  margin: 8px 0 4px;
  width: 100%;
  background: #fff;
  color: #24095f;
}
.sg-pick small {
  display: block;
  font-size: 12px;
  color: #b9add9;
}
@media (max-width: 760px) {
  .sg-show {
    grid-template-columns: 1fr;
    position: relative;
    justify-items: center;
    gap: 8px;
  }
  .sg-mia {
    justify-self: center;
    flex-direction: row;
    max-width: none;
    gap: 10px;
  }
  .sg-mia img {
    width: 56px;
    border-width: 3px;
  }
  .sg-bub {
    order: 0;
    min-width: 0;
    font-size: 15px;
    padding: 6px 12px;
  }
  .sg-bub::after {
    left: -8px;
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
    border: 8px solid transparent;
    border-right-color: #fff;
    border-left: 0;
  }
  .sg-bagw {
    position: absolute;
    right: -6px;
    bottom: -20px;
    width: 74px;
    z-index: 4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sg-bagw.shake,
  .sg:not(.charge) .sg-charge {
    animation: none;
  }
}

/* v4: smooth layout — board of winners beside the machine, nothing jumps */
.sg-head.swap,
.sg-board.swap {
  animation: sgswap 0.55s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes sgswap {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
}
.sg-board {
  width: min(1240px, 100%);
  background: #1c0752ee;
  border: 2px solid #ffffff22;
  border-radius: 24px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.sg-bh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
}
.sg-bh b {
  font:
    800 20px 'Baloo Da 2',
    sans-serif;
  color: #fff;
}
.sg-bh span {
  background: #ffa51f;
  color: #24095f;
  font:
    800 17px 'Baloo Da 2',
    sans-serif;
  border-radius: 999px;
  padding: 0 12px;
  transition: transform 0.3s;
}
.sg-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  overflow: auto;
  scroll-behavior: smooth;
  padding: 2px;
}
.sg-list.big {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.sg-list .sg-card {
  animation: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 76px;
  padding: 8px 8px 9px;
  border-radius: 14px;
  box-shadow: 0 4px 0 #e8261b;
  border-width: 3px;
}
.sg-list .sg-card b {
  font:
    800 28px/1.05 'Baloo Da 2',
    sans-serif;
}
.sg-list .sg-card span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.sg-list.big .sg-card {
  min-height: 150px;
}
.sg-list.big .sg-card b {
  font-size: clamp(44px, 5vw, 64px);
}
.sg-list.big .sg-card span {
  font-size: 17px;
}
.sg-list .sg-card.slot {
  background: #ffffff08;
  border: 3px dashed #ffffff33;
  box-shadow: none;
  color: #ffffff40;
}
.sg-list .sg-card.slot b {
  font-size: 30px;
}
.sg-list .sg-card.got {
  animation: sggot 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes sggot {
  40% {
    transform: scale(1.1);
  }
}
.sg-flying {
  border-radius: 14px;
  transform-origin: 50% 50%;
}
.sg-list.sg-flywrap {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  display: block;
  overflow: visible;
  padding: 0;
}
@media (min-width: 1000px) {
  .sg-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 31vw, 560px);
    grid-template-areas: 'head board' 'show board' 'ctl board';
    align-items: center;
    align-content: center;
    column-gap: clamp(14px, 2vw, 30px);
    row-gap: 12px;
    padding-bottom: 28px;
  }
  .sg-head {
    grid-area: head;
  }
  .sg-show {
    grid-area: show;
  }
  .sg-ctl {
    grid-area: ctl;
  }
  .sg-board {
    grid-area: board;
    align-self: stretch;
    max-height: calc(100vh - 170px);
    width: auto;
  }
  .sg-list {
    flex: 1;
    align-content: start;
  }
  .sg-list.many {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sg-list.mid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sg-list.many .sg-card {
    min-height: 70px;
  }
  .sg-list.many .sg-card b {
    font-size: clamp(20px, 1.8vw, 28px);
  }
  .sg-list.many .sg-card span {
    font-size: 12px;
  }
  .sg-list.big {
    grid-template-columns: 1fr;
  }
  .sg-c {
    width: clamp(46px, 5.6vw, 96px);
    font-size: clamp(40px, 4.9vw, 84px);
  }
  .sg-ttl h2 {
    font-size: clamp(40px, 5vw, 76px);
  }
  .sg-show {
    width: 100%;
    grid-template-columns: minmax(120px, 1fr) auto minmax(90px, 0.8fr);
  }
  .sg-mia {
    max-width: 100%;
    min-width: 0;
    justify-self: center;
  }
  .sg-bub {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(14px, 1.25vw, 20px);
  }
  .sg-mia img {
    width: clamp(70px, 7vw, 120px);
  }
  .sg-bagw {
    width: clamp(90px, 10vw, 180px);
    justify-self: center;
  }
}
@media (max-width: 999px) {
  .sg-board {
    order: 5;
  }
}
