/* Shake web account: /start, /login and /app. Figma 96:354 (first name), 96:406 (number),
   97:448 (dashboard shell). Brand tokens, buttons and the sheet language are copied from
   join-app.css / bets.css so these pages ship on their own. Structure of the Accounts and
   Settings pages follows Caddy's cards, translated into Shake's blue brand.
   Phone-first: at 480px and below the dashboard is the full screen; above it sits in the
   rounded glass card from the Figma frame. */
:root {
  --top: #0669fe;
  --mid: #25a7fd;
  --bottom: #76d3fb;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.5);
  --ink: #1a8ce0;
  --blue: #168bfd;
  --ice: #ecf5ff;
  --ice-lo: #b2d0f4;
  --navy: #072236;
  --navy-2: rgba(7, 34, 54, 0.5);
  --navy-3: rgba(7, 34, 54, 0.08);
  --green: #00a35c;
  --red: #c1020b;
  --gutter: 16px;
  --dur: 320ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--top); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  color: var(--text);
  font-family: "Mona Sans", system-ui, -apple-system, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--top) 0%, var(--mid) 50%, var(--bottom) calc(100% - max(24px, env(safe-area-inset-bottom, 0px))));
  background-color: var(--top);
}
/* Safari extends opaque fixed edge colors into its translucent browser chrome. */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: -1;
  background-color: var(--bottom);
  pointer-events: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 24px; text-align: center; font-weight: 600; }

/* ---------- Figma type ---------- */
.h1 {
  font-size: 32px;
  line-height: 28px;
  font-weight: 650;
  font-stretch: 90%;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.lede { font-size: 16px; line-height: 22px; font-weight: 500; opacity: 0.5; overflow-wrap: anywhere; }

/* ---------- buttons ---------- */
.btn-ice {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0 8px;
  border-radius: 16px;
  background: var(--ice);
  color: var(--navy);
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1), inset 0 3px 0 #fff, inset 0 -3px 0 var(--ice-lo);
  transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), opacity 180ms var(--ease);
}
.btn-ice > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.btn-ice img { flex: none; display: block; width: 32px; height: 32px; }
.btn-ice:disabled, .btn-ice[aria-disabled="true"] { opacity: 0.3; pointer-events: none; }
.btn-ice:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 3px 0 #fff, inset 0 -1px 0 var(--ice-lo); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 1.5px 13.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 180ms var(--ease);
}
.btn-outline img { flex: none; display: block; width: 26px; height: 26px; }
.btn-outline:active { background: rgba(255, 255, 255, 0.12); }
.link {
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 8%;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.link:disabled { opacity: 0.5; text-decoration: none; }
.spinner { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(7, 34, 54, 0.25); border-top-color: var(--navy); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- onboarding and login ---------- */
.auth {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 76px) 20px calc(env(safe-area-inset-bottom, 0px) + 36px);
}
.col { position: relative; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 24px; animation: rise var(--dur) var(--ease) both; }
.head { display: flex; flex-direction: column; gap: 12px; }
.head.is-narrow { width: 278px; max-width: 100%; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 60px;
  padding: 0 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.field:focus-within { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
}
.field input::placeholder { color: #fff; opacity: 0.5; }
.phone { display: flex; width: 100%; }
.phone .country {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 60px;
  padding: 0 8px 0 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px 0 0 16px;
  font-size: 24px;
  line-height: 22px;
}
.phone .country img { display: block; width: 24px; height: 24px; }
.phone .field { border-radius: 0 16px 16px 0; gap: 10px; }
.phone .dial { flex: none; font-size: 18px; font-weight: 600; opacity: 0.5; }
.phone.is-bad .country, .phone.is-bad .field { border-color: #fff; }
.fine { font-size: 14px; line-height: 18px; font-weight: 500; opacity: 0.5; }
.fine a { text-decoration: underline; text-decoration-thickness: 8%; text-underline-offset: 3px; }
.msg {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 40, 120, 0.3);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.msg:empty { display: none; }
.row-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }

/* six boxes over one real input, so autofill, paste and the keyboard all just work */
.otp { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.otp-cell {
  height: 60px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  font-size: 32px;
  line-height: 28px;
  font-weight: 650;
  font-stretch: 90%;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.otp.is-focus .otp-cell.is-active { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.otp.is-bad .otp-cell { border-color: #fff; animation: shake-x 320ms var(--ease); }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.01; font-size: 16px; caret-color: transparent; border: 0; background: none; cursor: text; }
@keyframes shake-x { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.num-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; max-width: 100%; padding: 0 14px; border-radius: 100px; background: rgba(255, 255, 255, 0.16); font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; transition: background-color 160ms var(--ease); }
.num-chip { position: relative; }
.num-chip::before { content: ""; position: absolute; inset: -4px 0; }
.num-chip:active { background: rgba(255, 255, 255, 0.26); }
.num-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.num-chip svg { flex: none; }
.resend { position: relative; align-self: center; height: 22px; padding: 0; font-size: 14px; line-height: 22px; font-weight: 500; }
.resend::before { content: ""; position: absolute; inset: -11px -16px; }
.resend:disabled { opacity: 0.5; }
a.resend { display: inline-flex; align-items: center; color: inherit; text-decoration: none; opacity: 0.5; }
.inline-num { color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 8%; text-underline-offset: 3px; white-space: nowrap; }
.done-actions { display: flex; flex-direction: column; gap: 8px; }


/* ---------- dashboard shell (Figma 97:448) ---------- */
body.app { height: 100dvh; overflow: hidden; }
.shell { height: 100dvh; display: flex; justify-content: center; }
.card {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 481px) {
  .shell { padding: 21px 0; }
  .card { height: min(804px, calc(100dvh - 42px)); border-radius: 44px; background: rgba(255, 255, 255, 0.08); }
}
.top {
  flex: none;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 20px 10px;
}
@media (min-width: 481px) { .top { padding-top: 38px; } }
.top .logo { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 22px); transform: translateX(-50%); width: 36px; height: 36px; }
@media (min-width: 481px) { .top .logo { top: 42px; } }
.top .logo img { display: block; width: 36px; height: 36px; }
.pill-ice {
  position: relative;
  height: 44px;
  min-width: 76px;
  padding: 0 16px;
  border-radius: 100px;
  background: var(--ice);
  color: #000;
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
  filter: drop-shadow(0 3px 1.5px rgba(0, 0, 0, 0.1));
  box-shadow: inset 0 3px 0 #fff, inset 0 -3px 0 var(--ice-lo);
  transition: transform 140ms var(--ease);
}
.pill-ice:active { transform: translateY(2px); }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--navy);
  text-decoration: none;
  filter: drop-shadow(0 3px 1.5px rgba(0, 0, 0, 0.1));
  box-shadow: inset 0 3px 0 #fff, inset 0 -3px 0 var(--ice-lo);
}
.icon-btn svg { display: block; }

.view {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 20px calc(var(--dock, 150px) + env(safe-area-inset-bottom, 0px));
  outline: none;
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.page { display: flex; flex-direction: column; gap: 28px; animation: rise var(--dur) var(--ease) both; }
.page-title { font-size: 30px; line-height: 32px; font-weight: 650; font-stretch: 90%; letter-spacing: -0.5px; overflow-wrap: anywhere; }
.sub { margin-top: 4px; font-size: 16px; line-height: 22px; font-weight: 500; opacity: 0.6; }
.section { display: flex; flex-direction: column; gap: 10px; }
.section-title { padding: 0 4px; font-size: 20px; line-height: 26px; font-weight: 650; font-stretch: 90%; letter-spacing: -0.2px; }
.section-note { padding: 0 4px; font-size: 14px; line-height: 20px; font-weight: 500; opacity: 0.6; }
.list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px; border-radius: 100px; background: #fff; color: var(--ink); font-size: 13px; line-height: 22px; font-weight: 700; vertical-align: 3px; }

/* dock: Create bet pill + tab bar float over the scrolling view */
.dock { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 14px); pointer-events: none; }
@media (min-width: 481px) { .dock { padding: 0 20px 36px; } }
.dock > * { pointer-events: auto; }
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.76));
  border: 1px solid #d9d8d8;
  -webkit-backdrop-filter: blur(49.5px);
  backdrop-filter: blur(49.5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
  color: #000;
}
.create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  padding: 4px 12px 4px 16px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.create img { display: block; width: 20px; height: 20px; }
.create:active { transform: scale(0.97); }
.create.is-away { opacity: 0; transform: translateY(8px); pointer-events: none; }
.tabs { display: flex; width: 100%; max-width: 400px; height: 65px; padding: 4px; border-radius: 999px; }
.tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 10px;
  line-height: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.tab img { display: block; width: auto; height: 26px; }
.tab .coins { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 20px; line-height: 26px; font-weight: 800; font-stretch: 90%; }
.tab[aria-current="page"] { background: rgba(0, 0, 0, 0.08); color: #000; }

/* ---------- white cards (Caddy structure) ---------- */
.item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 14px 14px 14px 16px;
  border-radius: 24px;
  background: #fff;
  color: var(--navy);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 40, 120, 0.1);
  transition: transform 140ms var(--ease);
}
a.item:active, button.item:active { transform: scale(0.99); }
.tile { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #eef6ff; overflow: hidden; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile svg { display: block; }
.tile.is-flat { background: none; border-radius: 0; }
.item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-title { font-size: 17px; line-height: 22px; font-weight: 650; overflow-wrap: anywhere; }
.item-sub { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--navy-2); overflow-wrap: anywhere; }
.chip { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-3); color: var(--navy); }
.chip.is-on { background: var(--navy); color: #fff; }
.chip.is-ok { background: rgba(0, 163, 92, 0.14); color: #007a45; }
.chip svg { display: block; }
.status { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 45%; padding: 5px 10px; border-radius: 100px; background: var(--navy-3); color: var(--navy); font-size: 13px; line-height: 16px; font-weight: 650; }
.status.is-ok { background: rgba(0, 163, 92, 0.12); color: #007a45; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.group-card { padding: 0; overflow: hidden; border-radius: 24px; background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(0, 40, 120, 0.1); }
.group-card .item { box-shadow: none; border-radius: 0; background: none; min-height: 68px; }
.group-card .item + .item { border-top: 1px solid rgba(7, 34, 54, 0.1); }
.pill-red { background: #fbe6e5 !important; color: #c1020b !important; }
.item.is-danger .item-title { color: var(--red); }
.item.is-danger .tile { background: #fbe6e5; }
.item.is-danger .chip { background: #fbe6e5; color: var(--red); }

/* bets */
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.16); }
.sum b { font-size: 22px; line-height: 28px; font-weight: 700; font-stretch: 90%; overflow-wrap: anywhere; }
.sum span { font-size: 13px; line-height: 18px; font-weight: 500; opacity: 0.7; }
.bet { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 24px; background: #fff; color: var(--navy); text-decoration: none; box-shadow: 0 2px 10px rgba(0, 40, 120, 0.1); transition: transform 140ms var(--ease); }
.bet:active { transform: scale(0.99); }
.bet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; }
.bet-label { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; line-height: 18px; font-weight: 650; color: var(--navy-2); }
.bet-label i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #b9c6d2; }
.bet.is-need .bet-label { color: var(--blue); }
.bet.is-need .bet-label i { background: var(--blue); box-shadow: 0 0 0 4px rgba(22, 139, 253, 0.18); }
.bet.is-wait .bet-label i { background: #f2a516; }
.bet-time { flex: none; font-size: 13px; line-height: 18px; font-weight: 650; color: var(--navy-2); }
.bet-title { font-size: 17px; line-height: 22px; font-weight: 650; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bet-detail { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--navy-2); overflow-wrap: anywhere; }
.bet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; min-height: 32px; }
.pill { display: inline-flex; max-width: 60%; padding: 4px 10px; border: 1.5px solid rgba(7, 34, 54, 0.15); border-radius: 100px; font-size: 14px; line-height: 20px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 100px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 650; box-shadow: inset 0 2px 0 #4fa3f6, inset 0 -2px 0 #0264c3; }
.trail { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 0; text-align: right; }
.trail b { font-size: 17px; line-height: 22px; font-weight: 700; }
.trail span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--navy-2); }
.trail.is-won b { color: var(--green); }
.trail.is-lost b { color: var(--red); }
.bet-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bet-row > .bet-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 24px; border-radius: 28px; background: #fff; color: var(--navy); text-align: center; box-shadow: 0 2px 10px rgba(0, 40, 120, 0.1); }
.mark-tile { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(180deg, #0669fe, #25aafd); }
.mark-tile img { display: block; width: 44px; height: 44px; }
.empty h2 { font-size: 22px; line-height: 26px; font-weight: 650; font-stretch: 90%; }
.empty p { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--navy-2); text-wrap: pretty; }
.empty .cta { height: 44px; padding: 0 22px; font-size: 16px; text-decoration: none; margin-top: 4px; }
.foot { padding: 0 4px; font-size: 13px; line-height: 18px; font-weight: 500; opacity: 0.6; text-align: center; }

/* wallet */
.hero { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; border-radius: 28px; background: #fff; color: var(--navy); box-shadow: 0 2px 10px rgba(0, 40, 120, 0.1); }
.hero small { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--navy-2); }
.hero strong { font-size: 52px; line-height: 56px; font-weight: 800; font-stretch: 90%; letter-spacing: -1px; overflow-wrap: anywhere; }
.hero p { margin-top: 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--navy-2); }
.act { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--navy); text-decoration: none; }
.act + .act { border-top: 1px solid rgba(7, 34, 54, 0.1); }
.act-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.act-title { font-size: 15px; line-height: 20px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-sub { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--navy-2); }
.act b { flex: none; font-size: 16px; line-height: 20px; font-weight: 700; }
.act b.is-won { color: var(--green); }
.act b.is-lost { color: var(--red); }

/* skeleton and notices */
.skel { display: flex; flex-direction: column; gap: 10px; }
.skel i { display: block; height: 84px; border-radius: 24px; background: rgba(255, 255, 255, 0.18); animation: breathe 1.4s ease-in-out infinite; }
.skel i:first-child { height: 40px; width: 55%; border-radius: 12px; }
.skel i:nth-child(3) { animation-delay: 120ms; }
.skel i:nth-child(4) { animation-delay: 240ms; }
@keyframes breathe { 50% { opacity: 0.5; } }
.notice { min-height: 50dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 0 12px; }
.notice img { display: block; width: 44px; height: 44px; }
.notice p { font-size: 16px; line-height: 22px; font-weight: 500; opacity: 0.7; }
.notice .btn-ice { width: auto; min-width: 160px; padding: 0 24px; height: 52px; }
.banner { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: rgba(0, 40, 120, 0.3); font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; }
.banner button { margin-left: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- sheets (join-app.css modal language: 28px white card, blue primary) ---------- */
.sheet-layer { position: fixed; inset: 0; z-index: 20; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.01); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); opacity: 0; transition: opacity var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), -webkit-backdrop-filter var(--dur) var(--ease); }
.sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(369px, calc(100% - 24px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 28px;
  background: #fff;
  color: var(--navy);
  outline: none;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 28px)) scale(0.96);
  transition: transform 380ms var(--ease), opacity 220ms var(--ease);
}
.sheet-layer.is-open .sheet-backdrop { opacity: 1; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-layer.is-open .sheet { opacity: 1; transform: translate(-50%, -50%); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { flex: 1; font-size: 16px; line-height: 20px; font-weight: 600; text-align: center; }
.sheet-close, .sheet-spacer { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.sheet-close { background: var(--navy-3); }
.sheet-text { font-size: 16px; line-height: 20px; font-weight: 500; text-align: center; color: var(--navy-2); text-wrap: pretty; margin: 8px 8px 8px; }
.sheet-input { width: 100%; padding: 14px; border: 1.5px solid #d9d8d8; border-radius: 16px; color: var(--navy); font-size: 16px; line-height: 22px; font-weight: 600; outline: none; }
.sheet-input:focus { border-color: var(--blue); }
.sheet-error { padding: 8px 12px; border-radius: 16px; background: rgba(22, 139, 253, 0.1); color: #0b4f86; font-size: 14px; line-height: 18px; font-weight: 600; }
.sheet-error:empty { display: none; }
.sheet-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 16px; background: var(--blue); color: #fff; font-size: 20px; line-height: 24px; font-weight: 650; letter-spacing: -0.3px; text-decoration: none; box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1), inset 0 3px 0 #4fa3f6, inset 0 -3px 0 #0264c3; transition: transform 140ms var(--ease), opacity 180ms var(--ease); }
.sheet-btn:active:not(:disabled) { transform: translateY(2px); }
.sheet-btn:disabled { opacity: 0.5; }
.sheet-btn.is-danger { background: var(--red); box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1), inset 0 3px 0 #ea121c, inset 0 -3px 0 #8e0208; }
.sheet-btn.is-quiet { background: var(--navy-3); color: var(--navy); box-shadow: none; }
.sheet :focus-visible { outline-color: var(--blue); }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1.5px solid #d9d8d8; border-radius: 16px; }
.copy-row span { flex: 1; min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-row button { flex: none; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 650; }
.country-list { list-style: none; display: flex; flex-direction: column; max-height: 52dvh; overflow-y: auto; }
.country-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 14px; font-size: 16px; font-weight: 600; text-align: left; }
.country-list button[aria-selected="true"] { background: rgba(22, 139, 253, 0.1); }
.country-list .flag { font-size: 24px; line-height: 1; }
.country-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-list .dial { color: var(--navy-2); font-weight: 500; }
.toast { position: fixed; z-index: 30; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 16px); transform: translate(-50%, -12px); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 100px; background: var(--navy); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
@media (max-width: 359px) {
  .h1 { font-size: 28px; }
  .page-title { font-size: 26px; }
  .hero strong { font-size: 44px; }
}

.tile img.connection-avatar { border-radius: 50%; object-fit: cover; }
