* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root { --fgcs-statusbar-height: 0px; }
body { font-family: Montserrat, "PingFang SC", system-ui, sans-serif; background: #e1f1fa; color: #333; min-height: 100vh; overflow-x: hidden; }
#particle-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; opacity: .8; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
.hidden { display: none !important; }
.container { max-width: 800px; margin: 0 auto; padding: 15px 15px 64px; min-height: 100vh; position: relative; }
.gate-container { max-width: 520px; display: flex; flex-direction: column; justify-content: flex-start; padding-top: calc(var(--fgcs-statusbar-height, 0px) + 18px); gap: 12px; }
.header { position: sticky; top: 0; z-index: 100; background: linear-gradient(125deg, rgba(255,255,255,.46), rgba(255,255,255,.1) 38%, rgba(195,224,236,.16)), rgba(226,239,246,.8); backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1); border-bottom: 1px solid rgba(255,255,255,.6); padding: 15px 0 12px; margin: -15px -15px 15px; box-shadow: 0 8px 22px rgba(42,94,128,.11), inset 0 1px 0 rgba(255,255,255,.78); text-align: center; }
.gate-header { position: relative; margin: 0; border-radius: 24px; border: 1px solid rgba(255,255,255,.78); background: linear-gradient(125deg, rgba(255,255,255,.46), rgba(255,255,255,.1) 38%, rgba(195,224,236,.16)), rgba(226,239,246,.8); box-shadow: 0 8px 22px rgba(42,94,128,.11), inset 0 1px 0 rgba(255,255,255,.78); }
.header h1 { font-size: 1.6em; color: #9a3f5f; margin-bottom: 10px; font-weight: 800; letter-spacing: 1px; }
.user-line { color: #6a6f90; font-size: 12px; font-weight: 700; margin-top: 8px; }
.tab-container { display: inline-flex; background: rgba(0,0,0,.05); border-radius: 30px; padding: 4px; border: 1px solid rgba(255,255,255,.5); }
.tab-btn { background: transparent; color: #6a6f90; padding: 6px 18px; border-radius: 26px; font-size: .95rem; transition: all .3s ease; font-weight: 700; }
.tab-btn.active { background: #fff; color: #9a3f5f; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.card { background: rgba(255,255,255,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 20px; border: 1px solid rgba(255,255,255,.9); padding: 20px; margin-bottom: 16px; box-shadow: 0 4px 15px rgba(0,0,0,.03); }
.auth-card { margin-top: 0; background: linear-gradient(125deg, rgba(255,255,255,.46), rgba(255,255,255,.1) 38%, rgba(195,224,236,.16)), rgba(226,239,246,.8); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); border-color: rgba(255,255,255,.9); box-shadow: 0 8px 22px rgba(42,94,128,.11), inset 0 1px 0 rgba(255,255,255,.78); }
.auth-tabs { width: 100%; display: flex; margin-bottom: 16px; }
.auth-tabs .tab-btn { flex: 1; }
form { display: grid; gap: 12px; }
input { width: 100%; border: 1px solid rgba(154,63,95,.16); border-radius: 15px; padding: 13px 15px; background: rgba(255,255,255,.76); outline: none; color: #2a3f5f; }
input:focus { border-color: #9a3f5f; box-shadow: 0 0 0 4px rgba(154,63,95,.09); }
.primary-btn { background: linear-gradient(135deg, #9a3f5f, #c25b7e); color: #fff; padding: 13px 18px; border-radius: 18px; font-weight: 800; box-shadow: 0 6px 15px rgba(154,63,95,.25); }
.muted-btn { background: rgba(42,63,95,.1); color: #2a3f5f; padding: 11px 14px; border-radius: 14px; font-weight: 800; }
.primary-btn.disabled, .primary-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.25); }
.form-note { margin-top: 12px; color: #6a6f90; font-size: 13px; font-weight: 700; line-height: 1.6; }
.remember-row input { height: 16px; accent-color: #9a3f5f; }
.form-note.error { color: #d63031; }
.remember-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; color: #6a6f90; font-size: 13px; font-weight: 800; }
.remember-row input { width: auto; }
.captcha-row { position: relative; color: #2a3f5f; font-size: 13px; font-weight: 900; }
.captcha-row input { height: 48px; padding-right: 132px; }
.captcha-image-button { position: absolute; top: 4px; right: 5px; width: 120px; height: 40px; padding: 0; overflow: hidden; border-left: 1px solid rgba(154,63,95,.14); border-radius: 11px; background: #f6eff4; }
.captcha-image-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.filter-row { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 10px 0 20px; position: relative; }
.date-control { position: relative; text-align: center; }
.date-badge { display: inline-flex; align-items: center; gap: 8px; height: 42px; background: rgba(255,255,255,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 8px 18px; border-radius: 20px; font-weight: 800; color: #2a3f5f; box-shadow: 0 4px 12px rgba(0,0,0,.05); font-size: 15px; border: 1px solid rgba(255,255,255,.9); cursor: pointer; }
#dateInput { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.distill-control { display: inline-flex; align-items: center; gap: 8px; height: 42px; background: rgba(255,255,255,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.9); padding: 0 14px 0 16px; border-radius: 30px; font-weight: 800; font-size: .95rem; color: #6a6f90; box-shadow: 0 4px 12px rgba(0,0,0,.05); user-select: none; }
.distill-control.active .status-text, .distill-control.active span:first-child { color: #9a3f5f; }
.ios-switch { width: 44px; height: 24px; overflow: visible; display: block; }
.ios-switch .switch-bg { transition: fill .3s ease; fill: rgba(155,163,175,.5); }
.ios-switch .switch-knob { transition: transform .3s cubic-bezier(.34,1.56,.64,1); filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }
.distill-control.active .switch-bg { fill: #9a3f5f; }
.distill-control.active .switch-knob { transform: translateX(20px); }
.status-text { width: 34px; text-align: left; font-size: 14px; }
.vip-card { display: grid; gap: 12px; color: #6a6f90; font-weight: 700; line-height: 1.6; }
.vip-form { grid-template-columns: 1fr auto; }
.match-card { cursor: pointer; transition: all .3s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden; }
.match-card:active { transform: scale(.98); }
.match-card.expanded { background: rgba(255,255,255,.95); box-shadow: 0 8px 25px rgba(0,0,0,.08); }
.card-head { display: flex; justify-content: space-between; align-items: center; font-size: .9em; color: #6a6f90; margin-bottom: 15px; border-bottom: 1px dashed rgba(0,0,0,.1); padding-bottom: 8px; font-weight: 700; min-height: 28px; }
.league-tag { background: #9a3f5f; color: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 800; margin-right: 6px; font-size: .85em; }
.card-body { display: flex; align-items: center; position: relative; z-index: 1; padding: 15px 0; padding-bottom: 50px; }
.team-col { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; height: 52px; position: relative; }
.team-col img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.1)); border-radius: 50%; background: rgba(255,255,255,.6); padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.t-name { font-weight: 800; color: #2a3f5f; font-size: 16px; line-height: 1.2; max-width: 110px; position: absolute; top: 60px; left: 50%; transform: translateX(-50%); width: 100%; }
.score-box.vs { color: #9ca3af; font-style: italic; font-family: Impact, sans-serif; letter-spacing: 2px; font-size: 30px; }
.live-status { display: flex; flex-direction: column; align-items: flex-end; }
.status-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.status-badge { padding: 2px 6px; border-radius: 6px; font-size: 10px; font-weight: 900; }
.status-in-progress { color: #fff; background: linear-gradient(135deg, #10b981, #34d399); }
.status-not-started { color: #6a6f90; background: rgba(148,163,184,.18); }
.hit-summary { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; }
.hit-label { background: linear-gradient(135deg, #ff5c5c, #e03e3e); color: white; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 900; box-shadow: 0 2px 4px rgba(224,62,62,.3); margin-right: 1px; }
.hit-tag { font-size: 9.5px; font-weight: 900; padding: 2px 4px; border-radius: 4px; color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.15); display: inline-block; line-height: 1.2; white-space: nowrap; }
.hit-tag.hit-spf { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.hit-tag.hit-goals { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.hit-tag.hit-score { background: linear-gradient(135deg, #9333ea, #c084fc); }
.hit-tag.hit-miss { background: linear-gradient(135deg, #64748b, #94a3b8); }
.score-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 100px; margin: 0 10px; }
.final-score { font-family: Montserrat, sans-serif; font-weight: 900; font-size: 32px; color: #e03e3e; display: flex; align-items: center; gap: 10px; text-shadow: 0 2px 4px rgba(224,62,62,.15); }
.pending-score { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 26px; display: flex; align-items: center; gap: 8px; color: #333; }
.pending-score .score-box.vs { font-size: 26px; margin: 0; line-height: 1; color: #9ca3af; }
.live-blink { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .55; } }
.card-detail { max-height: 0; overflow: hidden; opacity: 0; transition: all .3s ease-out; margin-top: 0; }
.match-card.expanded .card-detail { max-height: 760px; opacity: 1; margin-top: 15px; padding-top: 15px; border-top: 1px dashed rgba(0,0,0,.1); }
.predict-title { font-size: 12px; color: #666; font-weight: 800; text-align: center; margin-bottom: 12px; }
.predict-row { display: flex; justify-content: center; gap: 18px; row-gap: 22px; flex-wrap: wrap; margin: 5px 0 15px; }
.predict-item { background: #f8f9fa; border: 1px solid #eee; border-radius: 10px; padding: 8px 15px; text-align: center; min-width: 80px; position: relative; transition: all .2s; }
.p-score { font-size: 16px; font-weight: 900; color: #333; margin-bottom: 2px; }
.p-odds { font-size: 11px; color: #888; font-weight: 700; }
.predict-item.featured, .predict-item.score-item { border-color: #9333ea; background: rgba(147,51,234,.05); }
.predict-item.featured .p-score, .predict-item.score-item .p-score { color: #7e22ce; }
.predict-item.secondary-only { border-color: #c4b5fd; background: rgba(196,181,253,.08); }
.predict-item.secondary-only .p-score { color: #7e22ce; }
.predict-item.goal-item { border-color: #f59e0b; background: rgba(245,158,11,.04); }
.predict-item.goal-item .p-score, .predict-item.goal-item .p-odds { color: #d97706; }
.predict-item.spf-item { border-color: #3b82f6; background: rgba(59,130,246,.04); min-width: 60px; }
.predict-item.spf-item .p-score { color: #2563eb; }
.featured-badge { position: absolute; top: -10px; right: -8px; background: linear-gradient(135deg,#c084fc,#9333ea); color: white; font-size: 10px; padding: 2px 6px; border-radius: 8px 8px 8px 0; font-weight: 900; box-shadow: 0 2px 4px rgba(147,51,234,.3); z-index: 2; }
.predict-item.is-hit { border-color: #e03e3e !important; background: rgba(224,62,62,.08) !important; }
.predict-item.is-hit .p-score, .predict-item.is-hit .p-odds { color: #e03e3e !important; }
.hit-badge { position: absolute; top: -10px; left: -8px; background: linear-gradient(135deg, #ff5c5c, #e03e3e); color: white; font-size: 10px; padding: 2px 6px; border-radius: 8px 8px 0 8px; font-weight: 900; box-shadow: 0 2px 4px rgba(224,62,62,.3); z-index: 2; }
.loader { text-align: center; padding: 50px; color: #6a6f90; font-weight: 700; font-size: 16px; line-height: 1.6; }
.error-msg { color: #d63031; text-align: center; padding: 25px; background: rgba(214,48,49,.08); border: 1px solid rgba(214,48,49,.2); border-radius: 12px; font-weight: 800; margin-top: 20px; box-shadow: 0 4px 15px rgba(214,48,49,.1); }
.float-action { position: fixed; right: 0; bottom: 20%; z-index: 80; display: none; background: rgba(255,255,255,.65); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,.9); border-right: none; color: #9a3f5f; padding: 14px 8px; border-radius: 20px 0 0 20px; font-weight: 900; writing-mode: vertical-rl; letter-spacing: 2px; box-shadow: -4px 4px 20px rgba(154,63,95,.15), inset 1px 1px 5px rgba(255,255,255,.8); }
.float-action.show { display: block; }
@media (max-width: 520px) { .container { padding: 15px 10px 64px; } .gate-container { padding-top: calc(var(--fgcs-statusbar-height, 0px) + 14px); } .header:not(.gate-header) { margin-left: -10px; margin-right: -10px; } .header h1 { font-size: 1.35em; } .filter-row { gap: 8px; } .date-badge { padding: 8px 12px; } .distill-control { padding: 0 10px 0 12px; } .vip-form { grid-template-columns: 1fr; } }
