/* Embedded font licenses and notices:
Copyright 2020 The DM Mono Project Authors (https://www.github.com/googlefonts/dm-mono)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

*/
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500.woff') format('woff');
}
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/noto-sans-kr-400.woff') format('woff');
}
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/noto-sans-kr-500.woff') format('woff');
}
@font-face {
  font-family: 'Noto Sans KR';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/noto-sans-kr-700.woff') format('woff');
}
:root {
  --primary: #2563eb;
  --primary-light: #dbeafe;
  --text-dark: #0f172a;
  --text-mid: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-mid: #cbd5e1;
  --surface: #fff;
  --surface-subtle: #f1f5f9;
  --success: #168358;
  --success-bg: #e6f6ef;
  --warning: #f59e0b;
  --warning-bg: #fff7e0;
  --market-up: #168358;
  --market-up-bg: #e6f6ef;
  --market-down: #dc2626;
  --market-down-bg: #fef2f2;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --font: 'Noto Sans KR', sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--text-dark);
  background: #f5f7fa;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

.device-stage {
  display: grid;
  place-items: center;
}

.phone {
  --safe-area-top: env(safe-area-inset-top, 0px);
  --app-header-height: clamp(44px, 6dvh, 56px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: calc(80px + var(--safe-area-bottom));
  position: relative;
  width: min(480px, 100vw);
  height: 100dvh;
  overflow: hidden;
  border: 0;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}

.screen-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f8fafc;
}

.status-bar {
  flex-shrink: 0;
  height: var(--safe-area-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: var(--text-dark);
  background: #f8fafc;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: -0.005em;
}

.status-time {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
}

.status-icons {
  font-size: 11px;
  letter-spacing: 1px;
  white-space: pre;
}

.app-header {
  height: var(--app-header-height);
  margin: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #001848;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand span {
  position: relative;
  top: -1.5px;
}

.brand img {
  width: 27px;
  height: 27px;
  border-radius: 6px;
  object-fit: contain;
}

.more-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text-mid);
  background: var(--surface-subtle);
  font-size: 12px;
  line-height: 1;
}

.transaction-header,
.onboarding-header {
  flex-shrink: 0;
  height: var(--app-header-height);
  display: flex;
  align-items: center;
  background: #f8fafc;
}

.transaction-header {
  padding: 0 18px 0 10px;
}

.back-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.back-button img {
  width: 24px;
  height: 24px;
}

.transaction-header h1 {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.015em;
}

.content {
  position: absolute;
  top: calc(var(--safe-area-top) + var(--app-header-height) + 8px);
  right: 18px;
  bottom: var(--nav-height);
  left: 18px;
  overflow-y: auto;
  padding-bottom: 18px;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.content.without-nav {
  bottom: 0;
}

.content::-webkit-scrollbar {
  display: none;
}

.heading {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.02em;
}

h1[tabindex='-1']:focus {
  outline: none;
}

.subheading {
  margin-top: 4px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.01em;
}

.eyebrow {
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
}

.card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.points-card {
  min-height: 78px;
  margin-top: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-ad-slot {
  position: relative;
  width: 100%;
  height: 96px;
  margin-top: 12px;
  overflow: hidden;
  padding: 15px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(126, 220, 255, 0.5), transparent 24%),
    linear-gradient(130deg, #12284a 0%, #2557a8 60%, #3174cf 100%);
  text-align: left;
}

.home-ad-slot::after {
  content: '';
  position: absolute;
  top: -38px;
  right: -24px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.home-ad-copy,
.home-ad-action {
  position: relative;
  z-index: 1;
}

.home-ad-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 14px;
}

.home-ad-meta > span {
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'DM Mono', monospace;
  font-size: 8px;
}

.home-ad-copy strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.01em;
}

.home-ad-action {
  display: flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  white-space: nowrap;
}

.card-label {
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
}

.number {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: -0.005em;
}

.link-button {
  border: 0;
  color: var(--text-mid);
  background: none;
  font-size: 11px;
  line-height: 16px;
}

.stock-card {
  margin-top: 12px;
  padding: 16px;
}

.stock-top,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stock-change {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
  font-size: 11px;
  font-weight: 500;
}

.stock-select-content {
  position: absolute;
  top: calc(var(--safe-area-top) + var(--app-header-height) + 8px);
  right: 18px;
  bottom: var(--nav-height);
  left: 18px;
  overflow-y: auto;
  padding-bottom: 18px;
  scrollbar-width: none;
}

.stock-search {
  height: 48px;
  margin-top: 12px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  color: var(--text-mid);
  background: #fff;
}

.stock-search > span {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  line-height: 1;
  transform: rotate(-18deg);
}

.stock-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text-dark);
  background: transparent;
  font-size: 14px;
}

.stock-search input::placeholder {
  color: var(--text-light);
}

.stock-market-tabs {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}

.stock-market-tabs button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--text-mid);
  background: var(--surface-subtle);
  font-size: 12px;
}

.stock-market-tabs button.active {
  color: #fff;
  background: var(--text-dark);
  font-weight: 700;
}

.stock-list-heading {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stock-list-heading h2 {
  font-size: 16px;
  line-height: 24px;
}

.stock-list-heading span {
  color: var(--text-mid);
  font-size: 11px;
}

.stock-select-list {
  margin-top: 12px;
  overflow: hidden;
  padding: 4px 0;
}

.stock-select-row {
  width: 100%;
  min-height: 67px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  background: #fff;
  text-align: left;
}

.stock-select-row[hidden] {
  display: none;
}

.stock-select-row:nth-last-child(1 of :not([hidden])) {
  border-bottom: 0;
}

.stock-symbol {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 13px;
  font-weight: 700;
}

.stock-row-copy {
  min-width: 0;
  flex: 1;
}

.stock-row-copy strong,
.stock-row-copy small {
  display: block;
}

.stock-row-copy strong {
  font-size: 14px;
  line-height: 21px;
}

.stock-row-copy small {
  margin-top: 1px;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
}

.stock-row-state {
  color: var(--text-light);
  font-size: 11px;
}

.stock-select-row[aria-pressed='true'] .stock-row-state {
  color: var(--primary);
  font-weight: 700;
}

.stock-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.watchlist-toggle {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--text-mid);
  background: transparent;
}

.watchlist-toggle .ui-icon {
  width: 24px;
  height: 24px;
}

.watchlist-toggle[aria-pressed='true'] {
  color: var(--primary);
}

.watchlist-toggle[aria-pressed='true'] path {
  fill: currentColor;
}

.stock-empty {
  margin-top: 52px;
  color: var(--text-mid);
  font-size: 13px;
  line-height: 21px;
  text-align: center;
}

.stock-data-note {
  margin-top: 10px;
  color: var(--text-light);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.stock-name {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.badge.miss {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge.pending {
  background: var(--primary-light);
  color: var(--primary);
}

.badge.muted {
  background: var(--surface-subtle);
  color: var(--text-mid);
}

.quote-row,
.distribution-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  line-height: 16px;
}

.quote-row {
  margin-top: 20px;
  margin-bottom: 8px;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

#prediction .content {
  display: flex;
  flex-direction: column;
}

#prediction .content > * {
  flex-shrink: 0;
}

#prediction .stock-card {
  margin-top: 4px;
}

#prediction .stock-card .heading {
  font-size: 20px;
  line-height: 28px;
}

#prediction .stock-card .subheading {
  margin-top: 0;
  font-size: 12px;
  line-height: 18px;
}

#prediction .quote-row {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

#prediction .quote-row > span:first-child {
  color: var(--text-mid);
  font-weight: 500;
}

#prediction .prediction-question {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

#prediction .prediction-question + .direction-grid {
  margin-top: 8px;
}

#prediction .direction-grid {
  margin-bottom: 16px;
}

#prediction .content > .primary-button {
  margin-top: auto;
}

#prediction .ticket-total,
#pass .ticket-total {
  font-size: 18px;
  line-height: 26px;
}

.up-text {
  color: var(--market-up);
}
.down-text {
  color: var(--market-down);
}
.primary-text {
  color: var(--primary);
}

.distribution-title {
  margin-top: 12px;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
}

.progress-track {
  height: 7px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--primary-light);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.progress-fill.market {
  width: 58%;
  background: var(--market-up);
}

.distribution-labels {
  margin-top: 1px;
}

.section-title {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.015em;
}

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

.direction-card {
  height: 80px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.direction-card.selected {
  border: 2px solid #9fd8bf;
  background: var(--market-up-bg);
}

.direction-card.selected[data-direction='down'] {
  border-color: #f5b5b5;
  background: var(--market-down-bg);
}

.direction-card.wide {
  width: 100%;
}

.direction-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--market-up-bg);
}

.direction-icon.down {
  background: var(--market-down-bg);
}

.direction-icon img {
  width: 18px;
  height: 18px;
}

.direction-card.selected .direction-icon {
  background: #d0eee0;
}

.direction-card.selected .direction-icon.down {
  background: #fee2e2;
}

.direction-card:disabled {
  cursor: default;
}

.direction-card:disabled:not(.selected) {
  opacity: 0.6;
}

.home-prediction {
  margin-top: 12px;
}

.home-prediction .direction-card {
  height: 64px;
  padding-block: 12px;
}

.direction-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.direction-caption {
  display: block;
  color: var(--text-mid);
  font-size: 12px;
  line-height: 18px;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.primary-button {
  color: #fff;
  background: var(--primary);
}

.primary-button:disabled {
  color: var(--text-light);
  background: var(--surface-subtle);
}

.secondary-button {
  color: var(--primary);
  background: var(--primary-light);
}

.info-strip {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  color: var(--text-mid);
  background: var(--surface-subtle);
  font-size: 11px;
  line-height: 16px;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  height: var(--nav-height);
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  align-items: center;
  gap: 4px;
  padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(12px + var(--safe-area-bottom))
    max(12px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--border);
  background: #fff;
}

.nav-item {
  min-width: 0;
  width: 100%;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 12px;
  color: var(--text-light);
  background: #fff;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 500;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.header-account {
  width: 40px;
  height: 40px;
  margin-right: -8px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text-mid);
  background: transparent;
}

.header-account svg {
  width: 24px;
  height: 24px;
}

.ticket-card,
.summary-card,
.simple-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.ticket-card {
  width: 100%;
  min-height: 114px;
  margin-top: 12px;
  color: var(--text-dark);
  font: inherit;
  text-align: left;
}

.ticket-total {
  color: var(--primary);
  font-size: 22px;
  line-height: 30px;
}

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

.ticket-breakdown > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text-mid);
  background: var(--surface-subtle);
  font-size: 11px;
  line-height: 18px;
}

.ticket-breakdown strong {
  color: var(--text-dark);
  white-space: nowrap;
}

.ticket-card-empty {
  border-color: var(--border-mid);
  background: #f8fafc;
}

.ticket-card-empty .ticket-total {
  color: var(--text-mid);
}

.ticket-policy {
  margin-top: 12px;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 18px;
}

.prediction-status {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}

.prediction-status strong {
  font-size: 14px;
  line-height: 21px;
}

.prediction-status p {
  margin-top: 4px;
  color: var(--text-mid);
  font-size: 12px;
  line-height: 18px;
}

.prediction-status .secondary-button {
  margin-top: 12px;
}

.ticket-note {
  display: block;
  margin-top: 5px;
  color: var(--primary);
  font-size: 11px;
  line-height: 16px;
}

.menu-value {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.benefit-icon.amber {
  background: #fff6e0;
}
.benefit-icon svg {
  width: 22px;
  height: 22px;
}
.benefit-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.benefit-copy strong {
  font-weight: 500;
}
.benefit-copy span {
  color: var(--text-mid);
  font-size: 12px;
}
.stock-quote {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}
.stock-quote strong {
  font-size: 16px;
  font-weight: 700;
}
.stock-quote span {
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
}
.streak-card {
  margin-top: 12px;
  padding: 16px 16px 18px;
}
.streak-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.streak-history {
  min-height: 32px;
  margin-right: -4px;
  padding: 0 4px;
}
.streak-count {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 18px;
  font-weight: 700;
}
.streak-count strong {
  color: var(--primary);
  font-size: 48px;
  line-height: 52px;
  font-weight: 800;
  letter-spacing: -1px;
}
.streak-track {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  list-style: none;
}
.streak-track li {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-light);
  background: var(--surface-subtle);
  font-size: 12px;
  font-weight: 600;
}
.streak-track li.is-done {
  color: #fff;
  background: var(--primary);
}
.streak-track li.is-next {
  color: var(--primary);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--primary);
}
.streak-track li.is-reward {
  color: var(--primary);
  background: var(--primary-light);
}
.streak-track svg {
  width: 60%;
  height: 60%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.streak-track li.is-reward svg {
  width: 55%;
  stroke-width: 2;
}
.streak-goal {
  margin-top: 12px;
  color: var(--text-mid);
  font-size: 13px;
  line-height: 20px;
}
.streak-goal strong {
  color: var(--primary);
  font-weight: 700;
}
.screen-view[data-screen='home'] .content {
  right: 0;
  left: 0;
  padding: 0 18px 18px;
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.home-stat {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-dark);
  background: #fff;
  text-align: left;
}
.home-stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  font-size: 13px;
}
.home-stat .icon-tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.home-stat .icon-tile .ui-icon {
  width: 18px;
  height: 18px;
}
.home-stat .menu-chevron {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--text-light);
}
.home-stat strong {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.home-section.menu-card {
  padding: 0 16px;
}
.home-section .card-label {
  padding: 16px 0 4px;
}

.reward-ad-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(480px, 100vw);
  max-width: 100vw;
  max-height: calc(100dvh - 16px);
  margin: 0 auto;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border: 0;
  border-radius: 24px 24px 0 0;
  color: var(--text-dark);
  background: var(--surface);
  font-family: var(--font);
  text-align: center;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12);
}
.reward-ad-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}
.reward-ad-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 18px;
}
.reward-ad-dialog h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}
#reward-ad-description {
  margin-top: 10px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 23px;
}
.reward-ad-allowance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eff5ff;
  font-size: 13px;
}
.reward-ad-allowance strong {
  color: var(--primary);
  font-size: 18px;
}
.reward-ad-allowance strong span {
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 400;
}
.reward-ad-note {
  margin-bottom: 18px;
  color: var(--text-mid);
  font-size: 12px;
  line-height: 20px;
}
.prediction-review-summary {
  margin: 16px 0 12px;
  text-align: left;
}
.last-result-cards {
  display: flex;
  gap: 12px;
  margin: 16px -24px 12px;
  padding: 0 24px;
  overflow-x: auto;
  scroll-padding: 0 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  text-align: left;
}
.last-result-cards::-webkit-scrollbar {
  display: none;
}
.last-result-cards .summary-card {
  flex: 0 0 100%;
  margin-top: 0;
  scroll-snap-align: start;
}
.last-result-dots {
  margin-bottom: 12px;
}
.reward-ad-cancel {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 0;
  color: var(--text-mid);
  background: transparent;
  font-size: 13px;
}

.bottom-sheet {
  position: absolute;
  right: 0;
  bottom: var(--nav-height);
  left: 0;
  height: 203px;
  padding: 12px 24px 40px;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -10px 26px rgba(15, 23, 42, 0.12);
}

.sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 2px;
  background: var(--border-mid);
}

.sheet-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.sheet-copy {
  margin-top: 8px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 21px;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.success-state {
  height: 128px;
  padding-top: 7px;
  text-align: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-bg);
}

.success-icon img {
  width: 28px;
  height: 28px;
}

.success-title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.success-caption {
  margin-top: 2px;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
}

.summary-card {
  margin-top: 12px;
  padding: 14px;
}

.summary-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 21px;
}

.summary-row strong {
  color: var(--text-dark);
  font-weight: 700;
}

.summary-row strong.up-text {
  color: var(--market-up);
}
.summary-row strong.down-text {
  color: var(--market-down);
}

#pass .ticket-card {
  min-height: 0;
  padding: 16px;
}

#pass .ticket-card .row-between > span {
  color: var(--text-mid);
  font-size: 12px;
  line-height: 18px;
}

.promo-card {
  margin-top: 12px;
  padding: 16px;
}

.promo-card h2 {
  font-size: 14px;
  line-height: 22px;
}

.promo-card .ad-count {
  color: var(--text-mid);
  font-size: 12px;
  line-height: 18px;
}

.promo-card p {
  margin-top: 2px;
  color: var(--text-mid);
  font-size: 12px;
  line-height: 18px;
}

.promo-card .progress-track {
  margin-top: 12px;
}

.promo-card .progress-fill {
  width: 20%;
}

.promo-card .primary-button {
  margin-top: 12px;
}

.result-card {
  margin-top: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.claim-card {
  height: 76px;
  margin-top: 12px;
  padding: 16px;
}

.recent-card {
  height: 78px;
  margin-top: 12px;
  padding: 14px;
}

.attendance-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.day {
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-mid);
  background: var(--surface-subtle);
  font-size: 11px;
}

.day.checked {
  color: var(--primary);
  background: var(--primary-light);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.tab {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 17px;
  color: var(--text-mid);
  background: var(--surface-subtle);
  font-size: 12px;
  font-weight: 500;
}

.tab.active {
  color: #fff;
  background: var(--primary);
}

#shop .content {
  display: flex;
  flex-direction: column;
}

#shop .content > * {
  flex-shrink: 0;
}

#shop .content > .product-submit {
  margin-top: auto;
}

.product-list {
  margin: 12px 0 16px;
  padding: 0 16px;
}

.product-card {
  width: 100%;
  min-height: 72px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  text-align: left;
}

.product-card + .product-card {
  border-top: 1px solid var(--border);
}

.product-radio {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-mid);
  border-radius: 50%;
}

.product-card[aria-pressed='true'] .product-radio {
  border: 6px solid var(--primary);
}

.product-card:disabled .product-radio {
  border-color: var(--border);
}

.product-copy {
  min-width: 0;
}

.product-copy strong {
  display: block;
  font-size: 14px;
  line-height: 21px;
}

.product-copy small {
  display: block;
  margin-top: 2px;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 18px;
}

.product-card:disabled .product-copy strong,
.product-card:disabled .product-copy small,
.product-state {
  color: var(--text-light);
  font-size: 11px;
}

.product-card:disabled .product-copy strong {
  font-size: 14px;
}

.product-card.compact {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.npay-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
}

.chevron {
  color: var(--text-light);
  font-size: 20px;
}

.request-card {
  margin-top: 12px;
  padding: 14px;
}

.request-card hr,
.menu-card hr,
.agreement-card hr {
  border: 0;
  border-top: 1px solid var(--border);
}

.request-card hr {
  margin: 12px 0 7px;
}

.account-card {
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
}

.stats-card {
  margin-top: 12px;
  padding: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: 20px;
  line-height: 26px;
}

.stats-grid span {
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
}

.menu-card {
  margin-top: 12px;
  padding: 0 16px;
}

.menu-row {
  width: 100%;
  min-height: 64px;
  padding: 10px 0;
  gap: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  font-size: 14px;
}

.splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-lockup {
  margin: auto 18px;
  text-align: center;
}

.splash-lockup img {
  width: 112px;
  height: 112px;
  margin: 0 auto;
  border-radius: 26px;
}

.splash-lockup h1 {
  margin-top: 12px;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.025em;
}

.splash-lockup p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 24px;
}

.launch-note {
  flex-shrink: 0;
  min-height: 44px;
  margin: 0 18px calc(20px + var(--safe-area-bottom));
  font-size: 11px;
  line-height: 16px;
}

.signup-screen {
  background: linear-gradient(180deg, #f8fbff 0%, #fff 42%);
}

.signup-screen,
.screen-view[data-screen='consent'],
.payout-screen {
  display: flex;
  flex-direction: column;
}

.signup-content {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: clamp(16px, 2.5dvh, 24px) 24px 24px;
}

.signup-content > * {
  flex-shrink: 0;
}

.signup-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.signup-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.signup-intro {
  margin-top: clamp(24px, 5dvh, 48px);
  text-align: center;
}

.signup-intro h1 {
  font-size: 28px;
  line-height: 38px;
  letter-spacing: -0.025em;
}

.signup-intro p {
  margin-top: 8px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 22px;
}

.signup-intro > span {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 12px;
  font-weight: 500;
}

.signup-auth {
  margin-top: auto;
  padding-top: 44px;
}

.auth-label {
  color: var(--text-mid);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}

.auth-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.auth-button {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.auth-button.apple {
  border-color: #000;
  color: #fff;
  background: #000;
}

.auth-button.kakao {
  border-color: #fee500;
  background: #fee500;
}

.auth-button.naver {
  border-color: #03c75a;
  color: #fff;
  background: #03c75a;
}

.auth-button img {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.auth-button.apple img {
  left: 5px;
  width: 40px;
  height: 40px;
}

.signup-note {
  flex-shrink: 0;
  margin: 12px 24px calc(24px + var(--safe-area-bottom));
  color: var(--text-light);
  font-size: 11px;
  line-height: 17px;
  text-align: center;
}

.consent-main {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 24px;
}

.consent-main .subheading {
  margin-top: 4px;
}

.consent-header {
  flex-shrink: 0;
  height: 44px;
  padding-left: 12px;
}

.consent-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text-mid);
  background: transparent;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.consent-screen .consent-main {
  display: flex;
  flex-direction: column;
  padding: 0 24px 20px;
}

.consent-intro {
  flex: 1 0 auto;
  padding: 32px 0 72px;
}

.consent-intro img {
  display: block;
  object-fit: contain;
}

.consent-intro h1 {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.consent-agreements {
  flex-shrink: 0;
}

.agree-all {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.agree-all strong {
  font-weight: 500;
}

.check-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 21px;
}

.check-row input,
.payout-consent input {
  appearance: none;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  background: #fff;
}

.check-row input:checked,
.payout-consent input:checked {
  border-color: var(--primary);
  background: var(--primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center/14px no-repeat;
}

.consent-screen .check-row input {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  border-radius: 50%;
}

.consent-screen .check-row input:indeterminate {
  border-color: var(--primary);
  background: var(--primary) linear-gradient(#fff, #fff) center/10px 2px no-repeat;
}

.agreement-card {
  padding-top: 4px;
}

.agreement-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 56px;
}

.agreement-line button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--text-light);
  background: none;
}

.agreement-line .ui-icon {
  width: 18px;
  height: 18px;
}

.consent-action {
  flex-shrink: 0;
  min-height: calc(60px + var(--safe-area-bottom));
  padding-bottom: var(--safe-area-bottom);
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
}

.consent-action:disabled {
  color: #fff;
  background: #cecece;
}

.payout-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 24px;
}

.payout-content .heading {
  margin-top: 8px;
}

.payout-summary {
  margin-top: 20px;
  padding: 16px 18px;
  border-color: #d9e6fb;
  background: linear-gradient(125deg, #edf4ff, #fff 85%);
}

.payout-reward-heading,
.payout-points,
.payout-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payout-reward-heading {
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.payout-reward-heading .ui-icon {
  width: 18px;
  height: 18px;
}

.payout-reward-product {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.payout-reward-product img {
  flex-shrink: 0;
}

.payout-reward-product > div {
  min-width: 0;
}

.payout-reward-product p {
  color: var(--text-mid);
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.payout-amount {
  display: block;
  margin-top: 3px;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.04em;
}

.payout-amount span {
  margin-left: 3px;
  font-size: 18px;
}

.payout-points {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #cbdcf7;
  font-size: 12px;
  color: var(--text-mid);
}

.payout-points strong {
  color: var(--primary);
  font-size: 14px;
}

.payout-form {
  margin-top: 12px;
  padding: 16px;
}

.payout-form-heading {
  margin-bottom: 18px;
}

.payout-form-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payout-form-title .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.payout-form-title h2 {
  font-size: 14px;
  font-weight: 700;
}

.payout-form-heading > span:last-child {
  color: var(--text-mid);
  font-size: 11px;
}

.payout-form .form-field label {
  font-size: 12px;
}

.payout-form .form-field input {
  min-width: 0;
  font-size: 16px;
  background: #f8fafc;
  border-color: var(--border);
}

.payout-form .form-field input:focus {
  border-color: var(--primary);
  background: var(--surface);
}

.payout-delivery {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 4px 0;
  color: var(--text-mid);
  font-size: 12px;
  line-height: 19px;
}

.payout-delivery .ui-icon {
  width: 18px;
  height: 18px;
}

.payout-delivery p {
  overflow-wrap: anywhere;
}

.payout-preview {
  margin: 8px 4px 0;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 18px;
}

.form-field + .form-field {
  margin-top: 12px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.form-field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  color: var(--text-dark);
  background: #fff;
  font-size: 14px;
}

.form-field input::placeholder {
  color: var(--text-light);
}

.field-help {
  margin-top: 5px;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
}

.payout-footer {
  flex-shrink: 0;
  padding: 8px 18px calc(16px + var(--safe-area-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.payout-agreement-row {
  display: flex;
  align-items: center;
}

.payout-consent {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 12px;
  line-height: 19px;
  cursor: pointer;
}

.payout-consent strong {
  color: var(--primary);
  white-space: nowrap;
}

.payout-terms {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-mid);
}

.payout-terms .ui-icon {
  width: 18px;
  height: 18px;
}

.payout-action {
  margin-top: 8px;
  width: 100%;
}

.payout-footer .fraud-note {
  margin-top: 10px;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.ad-screen {
  color: #fff;
  background: #07111f;
}

.ad-progress-rail {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.ad-progress-rail span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: #78f2c3;
  transition: width 0.25s linear;
}

.ad-topbar {
  position: absolute;
  top: 4px;
  right: 18px;
  left: 18px;
  z-index: 20;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-disclosure {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(7, 17, 31, 0.54);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

.ad-controls {
  display: flex;
  gap: 8px;
}

.ad-round-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 17, 31, 0.54);
  backdrop-filter: blur(10px);
  font-size: 18px;
  line-height: 1;
}

.ad-creative {
  position: absolute;
  top: 62px;
  right: 18px;
  bottom: 104px;
  left: 18px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 9%, rgba(79, 226, 188, 0.32), transparent 29%),
    radial-gradient(circle at 0 92%, rgba(76, 107, 255, 0.34), transparent 34%),
    linear-gradient(152deg, #132943 0%, #0a1628 52%, #101b35 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.ad-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.ad-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.ad-orb-one {
  top: 64px;
  right: -62px;
  width: 176px;
  height: 176px;
  border: 1px solid rgba(120, 242, 195, 0.36);
  box-shadow: inset 0 0 40px rgba(120, 242, 195, 0.08);
}

.ad-orb-two {
  bottom: 112px;
  left: -82px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(91, 126, 255, 0.34);
}

.ad-brand,
.ad-copy,
.ad-market-card,
.ad-cta,
.ad-sponsor {
  position: relative;
  z-index: 2;
}

.ad-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ad-brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #07111f;
  background: #78f2c3;
  font-size: 16px;
  font-weight: 700;
}

.ad-copy {
  margin-top: 34px;
}

.ad-kicker {
  color: #78f2c3;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.16em;
}

.ad-copy h1 {
  margin-top: 7px;
  font-size: 28px;
  line-height: 39px;
  letter-spacing: -0.035em;
}

.ad-copy > p:last-child {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 21px;
}

.ad-market-card {
  height: 204px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.ad-market-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.ad-market-head small {
  display: block;
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  line-height: 16px;
}

.ad-market-head strong {
  display: block;
  margin-top: 1px;
  font-size: 16px;
  line-height: 24px;
}

.ad-market-head > span {
  padding: 5px 8px;
  border-radius: 10px;
  color: #78f2c3;
  background: rgba(120, 242, 195, 0.12);
  font-size: 11px;
  font-weight: 700;
}

.ad-market-chart {
  width: 300px;
  height: 92px;
  margin-top: 8px;
}

.ad-signal-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.ad-signal-row strong {
  color: #fff;
  font-size: 11px;
}

.ad-cta {
  width: 100%;
  height: 50px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  color: #07111f;
  background: #78f2c3;
  font-size: 14px;
  font-weight: 700;
}

.ad-cta span {
  font-size: 18px;
}

.ad-sponsor {
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  text-align: center;
}

.ad-reward-bar {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.ad-reward-bar > div span,
.ad-reward-bar > div strong {
  display: block;
}

.ad-reward-bar > div span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 16px;
}

.ad-reward-bar > div strong {
  font-size: 14px;
  line-height: 20px;
}

.ad-countdown-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(0, 0, 0, 0.24);
  font-size: 10px;
}

.ad-countdown-pill strong {
  color: #78f2c3;
}

.ad-complete-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 12, 23, 0.78);
  backdrop-filter: blur(14px);
}

.ad-complete-card {
  width: 100%;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  color: var(--text-dark);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.ad-complete-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-bg);
}

.ad-complete-icon img {
  width: 34px;
  height: 34px;
}

.ad-complete-card h2 {
  margin-top: 5px;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.02em;
}

.ad-complete-card > p:not(.ad-kicker) {
  margin-top: 8px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 21px;
}

.ad-ticket-reward {
  height: 64px;
  margin: 22px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--text-mid);
  background: var(--primary-light);
  font-size: 12px;
}

.ad-ticket-reward strong {
  color: var(--primary);
  font-size: 20px;
}

.toast {
  position: absolute;
  right: 18px;
  bottom: calc(var(--nav-height) + 16px);
  left: 18px;
  z-index: 50;
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.92);
  font-size: 12px;
  text-align: center;
  animation: toast-in 0.2s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body {
    background: #fff;
  }
  .app-shell {
    display: block;
    min-height: 100dvh;
  }
  .phone {
    width: min(480px, 100vw);
    height: 100dvh;
    margin: 0 auto;
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 360px) {
  .direction-card:not(.wide) {
    padding: 12px 8px;
    gap: 6px;
  }
  .direction-caption {
    font-size: 10px;
  }
  .attendance-days {
    gap: 4px;
  }
}

[hidden] {
  display: none !important;
}
.content > .primary-button,
.content > .secondary-button {
  margin-top: 12px;
}
.content > .heading + .card {
  margin-top: 12px;
}
.consent-screen,
.legal-screen {
  display: flex;
  flex-direction: column;
}
.legal-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 20px;
}
.loading-state,
.empty-state {
  padding: 32px 24px;
  font-size: 14px;
  line-height: 1.7;
}
.empty-state .primary-button,
.empty-state .secondary-button {
  margin-top: 18px;
}
.action-error {
  position: absolute;
  bottom: calc(var(--nav-height) + 8px);
  left: 12px;
  right: 12px;
  z-index: 60;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff1f2;
  color: #991b1b;
  font-size: 12px;
  line-height: 1.6;
}
.phone[aria-busy='true'] {
  cursor: progress;
}
.agreement-line > button,
.link-button {
  min-height: 44px;
}
.menu-row {
  text-align: left;
}
.stock-top > div,
.stock-row-copy,
.product-copy {
  min-width: 0;
}
.stock-name,
.stock-row-copy,
.product-copy,
.account-card strong,
.heading,
.row-between > strong {
  overflow-wrap: anywhere;
}
.card p + p {
  margin-top: 8px;
}
.card .primary-button {
  margin-top: 12px;
}
a.primary-button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.ui-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.icon-tile {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary);
  background: #eff5ff;
}

.icon-tile.neutral {
  color: var(--text-mid);
  background: var(--surface-subtle);
}
.icon-tile.complete {
  color: var(--success);
  background: var(--success-bg);
}
.icon-tile.miss {
  color: var(--danger);
  background: var(--danger-bg);
}
.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}
.account-avatar .ui-icon {
  width: 30px;
  height: 30px;
}
.account-copy,
.points-copy {
  min-width: 0;
}
.account-copy > strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 26px;
}
.points-copy .number {
  overflow-wrap: anywhere;
}
.card-heading {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 20px;
}
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}
.stats-grid > div {
  padding: 2px 8px;
}
.stats-grid > div + div {
  border-left: 1px solid var(--border);
}
.stats-grid strong {
  font-size: 22px;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
}
.stats-grid strong small {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 0;
}
.stats-grid .stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
}
.stat-label .ui-icon {
  width: 15px;
  height: 15px;
}
.stat-current strong {
  color: var(--primary);
}
.stats-total {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: var(--surface-subtle);
  color: var(--text-mid);
  font-size: 13px;
  line-height: 20px;
}
.stats-total strong {
  color: var(--text-dark);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.menu-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-wrap: anywhere;
}
.menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.menu-icon .ui-icon {
  width: 19px;
  height: 19px;
}
.menu-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

.screen-view[data-screen='wallet'] .points-card {
  min-height: 104px;
  background: var(--surface);
}
.points-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-light);
}
.wallet-tabs {
  margin-top: 18px;
}
.wallet-transaction {
  margin-top: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.transaction-copy {
  min-width: 0;
  flex: 1;
}
.transaction-copy h3,
.mission-copy h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  overflow-wrap: anywhere;
}
.transaction-copy time {
  display: block;
  margin-top: 4px;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
}
.transaction-amount {
  max-width: 45%;
  text-align: right;
  overflow-wrap: anywhere;
}
.transaction-amount strong {
  display: block;
  font-size: 16px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}
.transaction-amount strong small {
  margin-left: 2px;
  font-size: 11px;
}
.transaction-amount > span {
  display: block;
  margin-top: 4px;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
}
.transaction-amount.earned strong {
  color: var(--primary);
}
.transaction-amount.spent strong {
  color: var(--danger);
}
#attendance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#attendance.attendance-complete {
  background: var(--success-bg);
  color: var(--success);
  opacity: 1;
}
#attendance .ui-icon {
  width: 18px;
  height: 18px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.section-heading .section-title {
  margin-top: 0;
}
.section-heading > span {
  flex-shrink: 0;
  color: var(--text-mid);
  font-size: 11px;
}
.mission-reward {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.mission-reward small {
  margin-left: 2px;
  font-size: 11px;
}
.mission-summary {
  margin-top: 12px;
}
.mission-summary-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mission-summary-top > span {
  color: var(--text-mid);
  font-size: 12px;
  line-height: 18px;
}
.mission-summary-points {
  margin-top: 2px;
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: -0.02em;
}
.mission-summary-points > span {
  margin-left: 3px;
  font-size: 15px;
}
.mission-summary .progress-track {
  margin-top: 12px;
}
.mission-summary .progress-fill,
.mission-progress .progress-fill {
  width: 0;
}
.mission-list {
  margin-top: 12px;
  padding: 0 16px;
}
.mission-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.mission-item.weekly {
  grid-template-columns: 40px minmax(0, 1fr) auto;
}
.mission-item + .mission-item {
  border-top: 1px solid var(--border);
}
.mission-action {
  min-width: 52px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.mission-action.primary {
  color: #fff;
  background: var(--primary);
}
.mission-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.mission-progress .progress-track {
  flex: 1;
  height: 6px;
  margin-top: 0;
}
.mission-progress > span {
  flex-shrink: 0;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 16px;
}
.result-card .icon-tile,
.wallet-transaction .icon-tile {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.result-card .ui-icon,
.wallet-transaction .ui-icon {
  width: 20px;
  height: 20px;
}
.result-copy {
  min-width: 0;
  flex: 1;
}
.result-stock {
  font-size: 14px;
  line-height: 21px;
  overflow-wrap: anywhere;
}
.result-card .badge,
.result-card .primary-button {
  flex-shrink: 0;
  justify-content: center;
  min-width: 68px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
  line-height: 16px;
}
.result-meta {
  margin-top: 2px;
  color: var(--text-mid);
  font-size: 12px;
  line-height: 18px;
}
.result-meta strong {
  color: var(--text-dark);
}
.result-meta .result-hit {
  color: var(--success);
  font-weight: 500;
}
.result-meta .result-miss {
  color: var(--danger);
  font-weight: 500;
}
.result-card .primary-button {
  width: auto;
  margin-top: 0;
  border-radius: 999px;
}
.result-card .primary-button:disabled {
  background: var(--surface-subtle);
  color: var(--text-mid);
  font-weight: 400;
}
.record-date {
  margin-top: 12px;
  color: var(--text-mid);
  font-size: 11px;
}
.record-points {
  font-size: 16px;
  font-weight: 700;
}
.empty-state {
  text-align: center;
  color: var(--text-mid);
}
.empty-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  background: var(--surface-subtle);
  color: var(--text-mid);
}

.challenge-card {
  margin-top: 12px;
  text-align: center;
  padding: 24px 16px;
}
.challenge-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 18px;
  color: #9a6700;
  background: #fff8e8;
}
.challenge-icon .ui-icon {
  width: 30px;
  height: 30px;
}
.challenge-card h2 {
  margin-top: 6px;
  font-size: 26px;
  line-height: 36px;
}
.challenge-card h2 + p {
  margin-top: 12px;
  color: var(--text-mid);
  font-size: 13px;
  line-height: 21px;
}
.challenge-rules {
  margin-top: 12px;
}
.challenge-rules ol {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}
.challenge-rules li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 22px;
}
.challenge-rules li > span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  text-align: center;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 11px;
  font-weight: 700;
}
.challenge-rules .field-help {
  margin-top: 16px;
}

/* Ten-win prize: independent of wallet-funded product exchanges. */
.prize-preview {
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  line-height: 1.65;
}
.prize-hero {
  padding: 24px 18px;
  text-align: center;
  background: linear-gradient(155deg, #eff5ff, #fff 70%);
}
.prize-hero .challenge-icon {
  margin: 0 auto 14px;
}
.prize-eyebrow {
  font-size: 12px;
  color: #64748b;
}
.prize-hero h2 {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.prize-hero .prize-amount {
  margin: 14px 0;
  color: #2563eb;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}
.prize-amount span {
  display: block;
  margin-top: 4px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.prize-hero > p:last-child {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}
.prize-payment,
.prize-form,
.prize-status {
  margin-top: 12px;
}
.prize-provider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.prize-provider img {
  flex-shrink: 0;
}
.prize-provider h2 {
  font-size: 16px;
  font-weight: 700;
}
.prize-provider p {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}
.prize-payment dl {
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.prize-payment dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.prize-payment dt {
  color: #64748b;
  flex-shrink: 0;
}
.prize-payment dd {
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.prize-note {
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
  line-height: 1.7;
  white-space: pre-line;
}
.prize-form .form-field {
  margin-top: 18px;
}
.prize-form .field-help {
  font-size: 12px;
  line-height: 1.7;
}
.prize-form input:not([type='checkbox']) {
  width: 100%;
  min-width: 0;
  font-size: 16px;
}
.prize-agreements {
  display: grid;
  gap: 16px;
  margin: 24px 0 14px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}
.prize-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
  cursor: pointer;
}
.prize-check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: #2563eb;
}
.prize-agreements details {
  margin: 6px 0 0 30px;
  font-size: 12px;
  color: #475569;
  line-height: 1.7;
}
.prize-agreements summary {
  cursor: pointer;
  text-decoration: underline;
}
.prize-agreements details p {
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prize-form-error {
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.6;
}
.prize-form-error:not(:empty) {
  margin-bottom: 12px;
}
.prize-form input[aria-invalid='true'] {
  border-color: #b91c1c;
}
.prize-status {
  text-align: center;
  padding: 24px 16px;
}
.prize-status .icon-tile {
  margin: 0 auto 12px;
}
.prize-status h2 {
  font-size: 18px;
  font-weight: 700;
}
.prize-status p {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
}
.prize-status .secondary-button {
  margin-top: 12px;
}

.signup-screen,
.consent-screen,
.payout-screen,
.legal-screen,
.splash-screen {
  --screen-display: flex;
}
/* First-visit tutorial */
.tutorial-dialog {
  position: fixed;
  inset: 0;
  width: min(420px, calc(100vw - 32px));
  max-width: 100vw;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden auto;
  border: 0;
  border-radius: 24px;
  color: var(--text-dark);
  background: var(--surface);
  font-family: var(--font);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.tutorial-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}
.tutorial-dialog[open] {
  display: flex;
  flex-direction: column;
}
.tutorial-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.tutorial-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px 0;
}
.tutorial-skip {
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--text-mid);
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.tutorial-skip:focus-visible,
.tutorial-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.tutorial-slides {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 248px;
  padding: 0 24px;
  text-align: center;
}
.tutorial-slide {
  display: none;
  width: 100%;
}
.tutorial-slide.active {
  display: block;
  animation: tutorial-slide-in 0.28s ease-out;
}
@keyframes tutorial-slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.tutorial-number {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.tutorial-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 20px;
}
.tutorial-direction {
  grid-template-columns: 1fr;
  margin: 0 0 20px;
}
.tutorial-direction .direction-card {
  border: 2px solid #9fd8bf;
  background: var(--market-up-bg);
}
.tutorial-direction .direction-card.down {
  border-color: #f5b5b5;
  background: var(--market-down-bg);
}
.tutorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-bg);
  font-size: 12px;
  font-weight: 700;
}
.tutorial-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.02em;
}
.tutorial-accent {
  color: var(--primary);
}
.tutorial-desc {
  margin-top: 8px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 23px;
}
.tutorial-rules {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-subtle);
  color: var(--text-mid);
  font-size: 12px;
  line-height: 18px;
  text-align: left;
}
.tutorial-rules p + p {
  margin-top: 4px;
}
.tutorial-rules strong {
  color: var(--text-dark);
  font-weight: 700;
}
.tutorial-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
}
.tutorial-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.tutorial-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border-mid);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}
.tutorial-dot[aria-current='true'] {
  width: 20px;
  background: var(--primary);
}
@media (prefers-reduced-motion: reduce) {
  .tutorial-slide.active {
    animation: none;
  }
  .tutorial-dot {
    transition: none;
  }
}

[hidden] {
  display: none !important;
}

.action-error {
  pointer-events: none;
}
