:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1c1d21;
  --muted: #8a8f99;
  --line: #eceef2;
  --teal: #12c8b2;
  --teal-dark: #0eaea0;
  --teal-soft: #e7faf7;
  --shadow: 0 8px 24px rgba(18, 22, 31, 0.08);
  --radius: 14px;
  --header: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 72px;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  min-height: 100%;
}

img {
  display: block;
  max-width: 100%;
}

button, input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.logo-word b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-word small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal-dark);
}

.menu-cta {
  display: none;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  border: 0;
  background: transparent;
  color: #4b5160;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--teal);
}

.nav-item {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 20;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  display: grid;
  gap: 2px;
}

.dropdown a,
.dropdown button {
  border: 0;
  background: transparent;
  text-align: start;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #3d4350;
}

.dropdown a:hover,
.dropdown button:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.search {
  display: flex;
  align-items: center;
  width: min(240px, 22vw);
  height: 36px;
  background: #f3f4f7;
  border-radius: 999px;
  padding: 0 4px 0 14px;
  flex-shrink: 1;
}

.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
}

.search button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.btn-ghost {
  background: #fff;
  border-color: #dfe3ea;
  color: #394050;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.lang-wrap {
  position: relative;
}

.lang-btn {
  height: 34px;
  min-width: 52px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #dfe3ea;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: #394050;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn svg {
  flex-shrink: 0;
}

.lang-menu {
  display: none;
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: 210px;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  list-style: none;
  padding: 6px;
  z-index: 30;
}

.lang-menu.is-open {
  display: block;
}

.lang-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: start;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button.is-active {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 34px;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 8px;
  height: 300px;
  margin-bottom: 20px;
}

.hero-side {
  display: contents;
}

.hero-main,
.hero-side article {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #1a1d22;
  height: 100%;
  min-height: 0;
  box-shadow: 0 8px 18px rgba(20, 24, 32, 0.12);
}

.hero-main img,
.hero-side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.12) contrast(1.06) brightness(1.02);
  transform: scale(1.04);
  transition: transform 0.35s ease;
}

.hero-main:hover img,
.hero-side article:hover img {
  transform: scale(1.1);
}

.hero-main .card-meta b {
  font-size: 18px;
}

.hero-main .card-live,
.hero-main .card-view {
  height: 20px;
  font-size: 10px;
  top: 10px;
}

.hero-main .card-live {
  inset-inline-start: 10px;
}

.hero-main .card-view {
  inset-inline-end: 10px;
}

.hero-main .card-meta {
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.25);
}

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  scroll-margin-top: 80px;
  margin-bottom: 28px;
  scroll-margin-top: 80px;
}

.about-kicker {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.about-text {
  color: #5b6170;
  line-height: 1.7;
  font-size: 15px;
}

.about-points {
  list-style: none;
  display: grid;
  gap: 14px;
}

.about-points li {
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
}

.about-points strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.about-points span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.board-head h2 {
  font-size: 20px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.chip {
  border: 1px solid #e3e6ec;
  background: #fff;
  color: #4b5160;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}

.chip.is-active {
  background: var(--teal-soft);
  border-color: #b7efe6;
  color: var(--teal-dark);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px 6px;
}

.card {
  cursor: pointer;
}

.card-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1d22;
  box-shadow: 0 8px 18px rgba(20, 24, 32, 0.12);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  filter: saturate(1.12) contrast(1.06) brightness(1.02);
  transform: scale(1.04);
  transition: transform 0.35s ease;
}

.card:hover img {
  transform: scale(1.1);
}

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 28%, transparent 52%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.card-live {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff3b5c;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.card-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.1s ease-in-out infinite;
}

.card-view {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  z-index: 1;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(6px);
}

.card-meta {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 6px;
  z-index: 1;
  color: #fff;
}

.card-meta b {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.card-meta em {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes livePulse {
  50% { opacity: 0.35; transform: scale(0.7); }
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.stats strong {
  display: block;
  font-size: 22px;
  color: var(--teal-dark);
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.board {
  scroll-margin-top: 80px;
  margin-bottom: 28px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 28px;
  scroll-margin-top: 80px;
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.panel-hint {
  color: #5b6170;
  font-size: 14px;
}

.rank-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.rank-list li {
  display: grid;
  grid-template-columns: 28px 52px 1fr minmax(120px, 0.7fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  cursor: pointer;
}

.rank-list li:hover {
  background: var(--bg);
}

.rank-no {
  font-weight: 700;
  color: var(--teal-dark);
  text-align: center;
}

.rank-list img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 12px;
}

.rank-list strong {
  display: block;
}

.rank-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

.rank-meta {
  position: relative;
  text-align: end;
}

.rank-meta b {
  display: block;
  font-size: 14px;
}

.rank-meta span {
  color: var(--muted);
  font-size: 12px;
}

.rank-meta i {
  display: block;
  height: 4px;
  margin-top: 8px;
  margin-inline-start: auto;
  background: var(--teal);
  border-radius: 99px;
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.party-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
}

.party-grid img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center 18%;
}

.party-grid article > div {
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
}

.party-grid p {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
}

.party-grid span {
  color: var(--muted);
  font-size: 12px;
}

.party-grid .btn {
  margin-top: 8px;
  width: fit-content;
}

.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.how-steps li {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.how-steps b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
}

.how-steps span {
  color: #5b6170;
  font-size: 13px;
  line-height: 1.5;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dl-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.dl-qr {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #1c1d21 2px, transparent 2px) 0 0 / 8px 8px,
    linear-gradient(#1c1d21 2px, transparent 2px) 0 0 / 8px 8px,
    #eef6f5;
}

.dl-qr.is-android {
  background:
    linear-gradient(90deg, #0eaea0 2px, transparent 2px) 0 0 / 7px 7px,
    linear-gradient(#0eaea0 2px, transparent 2px) 0 0 / 7px 7px,
    #e7faf7;
}

.dl-qr.is-desk {
  background:
    linear-gradient(135deg, #12c8b2 25%, transparent 25%) 0 0 / 10px 10px,
    #f1f3f6;
}

.dl-card span {
  color: var(--muted);
  font-size: 13px;
}

.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.split-panels .panel {
  margin-bottom: 0;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin-top: 8px;
  color: #5b6170;
  font-size: 14px;
  line-height: 1.6;
}

.safety-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.safety-list li {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 14px;
}

.safety-list strong {
  display: block;
  margin-bottom: 4px;
}

.safety-list span {
  color: #5b6170;
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px 40px;
  color: var(--muted);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 28px;
  padding: 28px 0 22px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-brand .logo-mark {
  width: 28px;
  height: 28px;
}

.footer-brand-col p {
  line-height: 1.6;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.footer-top h4 {
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-top a,
.footer-top button {
  display: block;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 0;
  cursor: pointer;
  text-align: start;
  font: inherit;
}

.footer-top a:hover,
.footer-top button:hover,
.footer-social a:hover {
  color: var(--teal-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 24, 0.45);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-card.wide {
  width: min(720px, 100%);
}

.modal-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #777;
}

.modal h3 {
  margin-bottom: 6px;
}

.modal p {
  color: var(--muted);
  margin-bottom: 16px;
}

.modal .btn-primary {
  width: 100%;
}

.room-actions .btn {
  width: auto;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field input {
  height: 42px;
  border: 1px solid #e3e6ec;
  border-radius: 10px;
  padding: 0 12px;
}

.packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.pack {
  border: 1px solid #e3e6ec;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  text-align: start;
}

.pack strong {
  display: block;
}

.room {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.room img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 14px;
}

.room-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.verify {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 16, 22, 0.55);
  display: grid;
  place-items: center;
  padding: 16px;
}

.verify[hidden] {
  display: none;
}

.verify-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 18px;
  position: relative;
  box-shadow: var(--shadow);
}

.verify-kicker {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verify-card h3 {
  margin: 4px 0 6px;
}

.verify-hint,
.verify-lead,
.verify-msg {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.verify-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  margin-bottom: 14px;
}

.verify-steps li {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #f1f3f6;
  color: #7a8190;
}

.verify-steps li.is-on {
  background: var(--teal);
  color: #fff;
}

.verify-steps li.is-done {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.verify-scan {
  display: grid;
  gap: 16px;
  padding: 8px 0 4px;
}

.verify-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #e7faf7;
  border-top-color: var(--teal);
  animation: spin 0.8s linear infinite;
  margin: 8px auto;
}

.verify-bar {
  height: 6px;
  background: #eef1f5;
  border-radius: 99px;
  overflow: hidden;
}

.verify-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--teal);
  animation: load 1.3s ease forwards;
}

.verify-scene {
  position: relative;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(120deg, #12c8b2, #7ae0d2 40%, #d9f7f2 70%, #12c8b2);
  margin-bottom: 12px;
}

.verify-hole,
.verify-piece {
  position: absolute;
  top: 18px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.verify-hole {
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.verify-piece {
  background: linear-gradient(160deg, #0eaea0, #5adccb);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.verify-track {
  position: relative;
  height: 42px;
  border-radius: 99px;
  background: #f1f3f6;
}

.verify-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #d8f6f1;
  border-radius: 99px;
}

[dir="rtl"] .verify-fill {
  inset: 0 0 0 auto;
}

.verify-knob {
  position: absolute;
  top: 3px;
  inset-inline-start: 0;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 99px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.verify-knob.is-hold {
  cursor: grabbing;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.verify-tile {
  height: 64px;
  border: 1px solid #e3e6ec;
  border-radius: 12px;
  background: #f7f8fa;
  font-size: 26px;
  cursor: pointer;
}

.verify-tile.is-on {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: 0 0 0 2px rgba(18, 200, 178, 0.2);
}

.verify-input {
  width: 100%;
  height: 42px;
  border: 1px solid #e3e6ec;
  border-radius: 10px;
  padding: 0 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 8px 0 12px;
  text-align: center;
  font-weight: 700;
}

#verifyCanvas {
  display: block;
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.verify-ok {
  display: grid;
  gap: 6px;
  text-align: center;
  padding: 18px 0 8px;
  color: var(--teal-dark);
}

.verify .btn-primary {
  width: 100%;
}

.btn.is-done,
.pack.is-done {
  box-shadow: 0 0 0 2px rgba(18, 200, 178, 0.45);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes load {
  to { width: 100%; }
}

[dir="rtl"] .search {
  padding: 0 14px 0 4px;
}

@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .header-menu,
  .desk-only {
    display: none;
  }

  .search {
    width: auto;
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .header.is-open .header-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px 16px;
    z-index: 30;
    gap: 8px;
  }

  .header.is-open .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
  }

  .menu-cta .btn-primary {
    grid-column: 1 / -1;
  }

  .menu-toggle {
    display: flex;
  }

  .about {
    grid-template-columns: 1fr;
    padding: 18px 16px;
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 210px 210px;
    height: auto;
  }

  .hero-main {
    grid-column: 1 / -1;
    height: 210px;
  }

  .hero-side article {
    height: 210px;
  }

  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 6px;
  }

  .room {
    grid-template-columns: 1fr;
  }

  .room img {
    height: 240px;
  }

  .stats,
  .party-grid,
  .how-steps,
  .dl-grid,
  .split-panels,
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .panel,
  .about {
    padding: 18px 16px;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-list li {
    grid-template-columns: 24px 44px 1fr;
  }

  .rank-meta {
    grid-column: 2 / -1;
    text-align: start;
  }

  .rank-meta i {
    margin-inline-start: 0;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  main {
    padding: 12px 12px 36px;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 5px;
  }

  .btn-primary {
    padding: 0 12px;
  }

  .hero {
    grid-template-rows: 190px 180px;
  }

  .hero-main {
    height: 190px;
  }

  .hero-side article {
    height: 180px;
  }

  .stats,
  .party-grid,
  .how-steps,
  .dl-grid,
  .split-panels,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
