/* Combined main stylesheet (extracted from index.html and register.html)
   NOTE: This file was autogenerated by an assistant. Review for duplicates and adjust variables as needed. */

:root {
  --bg: #f1f8ff;
  --primary: #2f7bff;
  --text: #1a2b4a;
  --muted: #7a8aa3;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(47, 123, 255, 0.08);
  --page-max: 430px;
  /* register-related variables */
  --border: #e4eaf2;
  --input-bg: #fff;
  --btn-disabled: #c8d3e4;
  --radius-input: 10px;
  --radius-modal: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 12px 14px 28px;
  min-height: 100vh;
}

.logo-box {
  display: flex;
  justify-content: center;
  padding: 8px 0 14px;
}
.logo { height: 36px; width: auto; }

.video-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #111;
  background: #dbeafe;
  position: relative;
  aspect-ratio: 16 / 10;
}
.promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #cfe4ff;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}
.video-play-btn.hidden { display: none; }
.video-play-triangle {
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

/* --- swiper --- */
.swiper-box { margin-top: 14px; position: relative; overflow: hidden; border-radius: 12px; }
.swiper-track { display: flex; transition: transform 0.35s ease; will-change: transform; }
.slide { min-width: 100%; text-align: center; }
.slide .main { width: 100%; border-radius: 12px; object-fit: cover; }
.swiper-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #c5d5ea; }
.dot.active { background: var(--primary); width: 16px; border-radius: 999px; }

.actions { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

.start-box { position: relative; border-radius: 999px; overflow: hidden; box-shadow: var(--shadow); }
.start-game { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 999px; border: 1.5px solid #9ec4ff; background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%); color: var(--primary); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.start-game:active { opacity: 0.92; transform: scale(0.99); }
.start-ribbon { position: absolute; left: 0; top: 0; width: 64px; height: 64px; overflow: hidden; pointer-events: none; }
.start-ribbon span { position: absolute; left: -22px; top: 10px; width: 80px; padding: 2px 0; background: #6eafff; color: #fff; font-size: 10px; font-weight: 600; text-align: center; transform: rotate(-45deg); }

.item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(180deg, #edf5ff 0%, #e4f0ff 100%); border-radius: var(--radius); padding: 14px 12px 14px 16px; overflow: hidden; box-shadow: var(--shadow); }
.item .left { flex: 1; min-width: 0; }
.item .top { font-size: 16px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.item .bottom { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.item .tag { position: absolute; left: 0; top: 0; width: 42px; height: auto; pointer-events: none; }
.btn-install { flex-shrink: 0; min-width: 72px; height: 34px; padding: 0 16px; border-radius: 999px; background: linear-gradient(180deg, #4b93ff 0%, #2f7bff 100%); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 4px 10px rgba(47, 123, 255, 0.28); }
.btn-install:active { transform: scale(0.98); opacity: 0.92; }

.ios-tips { margin-top: 12px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
.scroll-hint { margin-top: 10px; text-align: center; color: var(--primary); font-size: 13px; font-weight: 600; }
.platform.is-android .scroll-hint, .platform.is-desktop .scroll-hint, .platform.is-desktop .tutorial, .platform.is-android .tutorial, .platform.is-desktop .app-unsigned, .platform.is-android .app-unsigned { display: none; }

.tutorial { margin-top: 18px; background: #fff; border-radius: 16px; padding: 14px 12px 20px; box-shadow: var(--shadow); }
.tabs { display: flex; border-bottom: 1px solid #e6eef8; margin-bottom: 14px; }
.tab { flex: 1; text-align: center; padding: 10px 4px 12px; font-size: 13px; color: var(--muted); position: relative; font-weight: 600; }
.tab.active { color: var(--primary); }
.tab.active::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 999px; background: var(--primary); }
.panel { display: none; }
.panel.active { display: block; }
.guide-title { text-align: center; font-size: 16px; font-weight: 700; color: #243652; margin-bottom: 6px; }
.guide-sub { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; padding: 0 8px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.step { text-align: center; }
.step img { width: 100%; border-radius: 10px; box-shadow: 0 4px 12px rgba(20, 40, 80, 0.08); background: #f7fbff; }
.step p { margin-top: 8px; font-size: 12px; color: #44556f; line-height: 1.45; text-align: left; padding: 0 2px; }
.step.full { grid-column: 1 / -1; max-width: 56%; margin: 0 auto; }
.guide-note { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6; padding: 0 4px; }

/* stats & toast */
.toast { position: fixed; left: 50%; bottom: 18%; transform: translateX(-50%) translateY(12px); background: rgba(20, 28, 45, 0.88); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 99; max-width: 80%; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.stats-panel { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(15, 25, 45, 0.45); padding: 24px 16px; overflow: auto; }
.stats-panel.open { display: block; }
.stats-card { max-width: 420px; margin: 40px auto; background: #fff; border-radius: 14px; padding: 18px 16px; box-shadow: var(--shadow); }
.stats-card h2 { font-size: 17px; margin-bottom: 6px; }
.stats-card .muted { color: var(--muted); font-size: 12px; margin-bottom: 12px; line-height: 1.5; }
.stats-card .total { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.stats-card ul { list-style: none; font-size: 12px; color: #44556f; max-height: 240px; overflow: auto; }
.stats-card li { padding: 8px 0; border-bottom: 1px solid #eef3fa; word-break: break-all; }
.stats-card .actions { display: flex; gap: 8px; margin-top: 14px; }
.stats-card .actions button { flex: 1; height: 36px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.stats-card .btn-primary { background: var(--primary); color: #fff; }
.stats-card .btn-ghost { background: #eef3fa; color: #44556f; }

@media (min-width: 768px) {
  body { background: radial-gradient(circle at 20% 0%, #e7f2ff 0%, transparent 45%), radial-gradient(circle at 80% 10%, #dcecff 0%, transparent 40%), #eef5fc; }
  .page { margin-top: 24px; margin-bottom: 40px; background: var(--bg); border-radius: 20px; box-shadow: 0 12px 40px rgba(40, 90, 160, 0.1); padding-bottom: 32px; }
}


.page-mobile { min-height: 100vh; background: linear-gradient(180deg, #eef5fc 0%, #f7fafd 40%, #fff 100%); }
.hero-mobile { width: 100%; height: auto; }
.form-section { padding: 20px 20px 32px; max-width: 430px; margin: 0 auto; }

.page-pc { display: none; position: fixed; inset: 0; z-index: 10; }
.overlay { position: absolute; inset: 0; background: rgba(15, 25, 45, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; width: min(920px, calc(100vw - 48px)); max-height: calc(100vh - 48px); background: #fff; border-radius: var(--radius-modal); overflow: hidden; box-shadow: 0 20px 60px rgba(20, 40, 80, 0.22); }
.modal-promo { flex: 0 0 46%; background: linear-gradient(180deg, #eef5fc 0%, #f5f9ff 100%); display: flex; align-items: center; justify-content: center; padding: 16px 8px; overflow: hidden; }
.modal-promo img { width: 100%; height: auto; object-fit: contain; }
.modal-form-wrap { flex: 1; position: relative; padding: 36px 40px 32px; overflow-y: auto; }
.btn-close { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; transition: background 0.15s; }
.btn-close:hover { background: #f0f4fa; }
.btn-close img { width: 20px; height: 20px; }

.form-head { margin-bottom: 24px; }
.form-head h1 { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--text); }
.form-head p { margin-top: 6px; font-size: 13px; color: var(--muted); }

.field { position: relative; margin-bottom: 12px; }
.field input { width: 100%; height: 48px; padding: 0 44px; border: 1px solid var(--border); border-radius: var(--radius-input); background: var(--input-bg); font-size: 14px; color: var(--text); transition: border-color 0.15s; }
.field input::placeholder { color: #b8c2d4; }
.field input:focus { border-color: #a8c8f0; }
.field.no-icon input { padding-left: 16px; padding-right: 16px; }

.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.field-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.field-toggle img { width: 22px; height: 22px; }

.btn-register { width: 100%; height: 48px; margin-top: 8px; border-radius: 999px; font-size: 16px; font-weight: 600; color: #fff; background: var(--btn-disabled); transition: background 0.2s, transform 0.1s; }
.btn-register:not(:disabled) { background: linear-gradient(180deg, #3da0ff 0%, var(--primary) 100%); box-shadow: 0 4px 14px rgba(24, 140, 255, 0.32); }
.btn-register:not(:disabled):active { transform: scale(0.99); opacity: 0.95; }
.btn-register:disabled { cursor: not-allowed; }

.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.social-row { display: flex; justify-content: center; }
.btn-telegram { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.15s; }
.btn-telegram:active { transform: scale(0.96); }
.btn-telegram img { width: 44px; height: 44px; }

.login-link { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.login-link a { color: var(--primary); font-weight: 600; }

@media (max-width: 767px) { .form-head { display: none; } }
@media (min-width: 768px) { .page-mobile { display: none; } .page-pc { display: block; } }
