/* Attendee phone app: dark navy, the AW26 light plate at the top, clear Liquid Glass cards. */
html { background: var(--ink); }
body.phone { min-height: 100vh; min-height: 100dvh; background: linear-gradient(180deg, #06123f 0%, #040a26 55%, #030820 100%); overflow-x: hidden; }
.phone-bg { position: fixed; inset: 0 0 auto 0; height: 62vh; overflow: hidden; pointer-events: none; z-index: 0; }
.phone-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: 0.75; transform: scale(1.25); filter: saturate(1.15); }
.phone-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 10, 38, 0.15) 0%, rgba(4, 10, 38, 0.55) 55%, #040a26 100%); }
.phone-slit { position: absolute; left: 50%; top: 0; bottom: 0; width: 140px; transform: translateX(-50%); background: radial-gradient(ellipse 45% 55% at 50% 45%, rgba(210, 230, 255, 0.45), transparent 70%); mix-blend-mode: screen; animation: pslit 6s ease-in-out infinite; }
@keyframes pslit { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.95; } }

.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 18px 6px; max-width: 520px; margin: 0 auto; }
.logos { display: flex; align-items: center; gap: 12px; }
.logos .god { height: 40px; }
.logos .dcaa { height: 26px; }
.logos .rule { width: 1px; height: 30px; background: rgba(210, 211, 212, 0.6); }
.lang { border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); border-radius: 99px; padding: 7px 14px; font-size: 14px; cursor: pointer; }

main { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 8px 16px calc(40px + env(safe-area-inset-bottom)); }
.hero { text-align: center; padding: 26px 6px 22px; }
.hero .t-ar { font-size: 25px; font-weight: 700; line-height: 1.45; direction: rtl; }
.hero .t-en { margin-top: 6px; font-size: 14px; letter-spacing: 0.04em; color: var(--mist); }
.hero .t-rule { width: 54px; height: 1px; margin: 12px auto 10px; background: linear-gradient(90deg, transparent, #fff, transparent); }

.card { border-radius: 26px; padding: 22px 20px; margin-top: 14px; }
.card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; line-height: 1.25; }
.card .sub { margin: 0 0 18px; color: var(--mist); font-size: 15px; line-height: 1.55; }
[dir='rtl'] .card h1 { font-weight: 700; }

.field { display: block; margin-bottom: 14px; }
.field .lbl { display: block; font-size: 13px; color: var(--ice); margin-bottom: 7px; letter-spacing: 0.02em; }
.field input { width: 100%; padding: 14px 15px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(3, 10, 40, 0.45); font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus { border-color: rgba(150, 195, 255, 0.9); box-shadow: 0 0 0 3px rgba(80, 140, 255, 0.25); }
.field input[dir='ltr'] { text-align: left; }
[dir='rtl'] .field input[dir='ltr'] { text-align: right; }
.field .hint { display: block; margin-top: 6px; font-size: 12px; color: rgba(207, 225, 255, 0.55); }
.field.bad input { border-color: var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--mist); margin: 6px 0 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #fff; flex: none; }
.err { margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 93, 108, 0.14); border: 1px solid rgba(255, 93, 108, 0.45); font-size: 14px; line-height: 1.45; }

.btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 16px; border: 0; background: #fff; color: #06123f; font-size: 17px; font-weight: 600; cursor: pointer; transition: transform 0.15s, opacity 0.2s; }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); font-weight: 500; }
.btn.glow { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 40px rgba(110, 165, 255, 0.55); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 1px #fff, 0 0 60px rgba(140, 185, 255, 0.85); } }
.link { display: block; margin: 16px auto 0; background: none; border: 0; color: var(--ice); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; cursor: pointer; }

/* pass */
.hello { display: flex; align-items: center; gap: 10px; margin: 18px 4px 4px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }
.hello svg { flex: none; }
.welcome { margin: 2px 4px 0; font-size: 30px; font-weight: 600; }
.ticket { position: relative; border-radius: 28px; margin-top: 16px; overflow: hidden; }
.ticket .t-top { padding: 20px 22px 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--mist); letter-spacing: 0.1em; text-transform: uppercase; }
.ticket .perf { height: 0; border-top: 1px dashed rgba(255, 255, 255, 0.28); margin: 0 18px; }
.ticket .num-area { padding: 26px 22px 24px; text-align: center; }
.ticket .num-lbl { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice); }
[dir='rtl'] .ticket .num-lbl, [dir='rtl'] .ticket .t-top { letter-spacing: 0; }
.ticket .sealed { margin: 18px auto 8px; width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.ticket .sealed::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.12), transparent 65%); }
.ticket .sealed::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(160, 200, 255, 0.85) 40deg, transparent 90deg); -webkit-mask: radial-gradient(circle, transparent 70px, #000 71px, #000 73px, transparent 74px); mask: radial-gradient(circle, transparent 70px, #000 71px, #000 73px, transparent 74px); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ticket .when { font-size: 22px; font-weight: 600; margin-top: 8px; }
.ticket .when-sub { margin: 8px auto 0; max-width: 320px; font-size: 13.5px; color: var(--mist); line-height: 1.55; }
.ticket .big-no { font-size: 112px; font-weight: 600; line-height: 1.05; margin: 12px 0 4px; font-variant-numeric: tabular-nums; text-shadow: 0 0 34px rgba(140, 185, 255, 0.75); }
.ticket .big-no.reveal { animation: noreveal 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes noreveal { from { opacity: 0; transform: scale(0.6) rotateX(70deg); filter: blur(10px) brightness(3); } to { opacity: 1; transform: none; filter: none; } }
.ticket .who { padding: 16px 22px 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ticket .who .nm { font-size: 18px; font-weight: 600; }
.ticket .who .dp { font-size: 13px; color: var(--mist); margin-top: 3px; }
.ticket .edge { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--red), #fff 35%, var(--blue-2)); opacity: 0.85; }
.winner-banner { margin-top: 14px; padding: 18px; border-radius: 20px; text-align: center; font-size: 18px; font-weight: 600; background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), #d9e7ff); color: #06123f; box-shadow: 0 0 50px rgba(150, 195, 255, 0.6); animation: glow 2s ease-in-out infinite; }
.note { margin: 12px 4px 0; font-size: 13px; color: var(--mist); text-align: center; line-height: 1.5; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 15px; color: var(--mist); }
.agenda li:last-child { border-bottom: 0; }
.agenda li .tm { font-variant-numeric: tabular-nums; color: rgba(207, 225, 255, 0.55); }
.agenda li.now { color: #fff; font-weight: 600; }
.agenda li.now .tm { color: var(--ok); }
.agenda li.past { opacity: 0.5; }
.small-print { margin: 18px 4px 0; font-size: 12px; color: rgba(207, 225, 255, 0.5); text-align: center; line-height: 1.6; }

/* vote */
.vote-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.timer { font-size: 13px; color: var(--ice); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sample-note { margin: 10px 0 4px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; background: rgba(255, 181, 71, 0.12); border: 1px solid rgba(255, 181, 71, 0.4); color: #ffd9a0; }
.values { display: grid; gap: 10px; margin-top: 14px; }
.value { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 16px; border-radius: 18px; text-align: start; cursor: pointer; transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.value:active { transform: scale(0.985); }
.value .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.45); display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; }
.value .txt { flex: 1; min-width: 0; }
.value .v1 { font-size: 18px; font-weight: 600; }
.value .v2 { font-size: 13px; color: var(--mist); margin-top: 3px; }
.value.on { border-color: rgba(255, 255, 255, 0.85); background: linear-gradient(180deg, rgba(110, 160, 255, 0.32), rgba(60, 110, 255, 0.14)); box-shadow: var(--glass-shadow), 0 0 32px rgba(100, 155, 255, 0.45); }
.value.on .tick { background: #fff; border-color: #fff; }
.value.dim { opacity: 0.45; }
.dock { position: sticky; bottom: 0; margin: 18px -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(4, 10, 38, 0.92) 30%); }
.dock .count { text-align: center; font-size: 13px; color: var(--mist); margin-bottom: 10px; }
.done { text-align: center; padding: 30px 10px 10px; }
.done .ok { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(67, 211, 158, 0.25), transparent 70%); border: 1.5px solid var(--ok); animation: pop2 0.7s cubic-bezier(0.2, 0.9, 0.2, 1.3) both; }
@keyframes pop2 { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.chosen { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 20px; }
.chosen span { padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.3); font-size: 14px; }

.offline { position: fixed; z-index: 10; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 9px 16px; border-radius: 99px; background: rgba(255, 181, 71, 0.95); color: #1c1200; font-size: 13px; font-weight: 600; }
.fade-in { animation: fin 0.5s ease both; }
@keyframes fin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
