:root {
  color-scheme: dark;
  --background: #0a0e17;
  --panel: #101826;
  --border: #233348;
  --cyan: #03edfe;
  --blue: #2f7cff;
  --gold: #f5c469;
  --text: #e8eef7;
  --muted: #9eafc4;
  font: 16px/1.6 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--cyan); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.wrap { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }
.cyan { color: var(--cyan); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brandbar { background: #0a0e17; border-bottom: 1px solid #1e2a3d; }
.brand-inner { min-height: 64px; display: flex; gap: 15px; align-items: center; }
.brand-logo { display: block; object-fit: contain; object-position: left center; }
.brand-caption { color: var(--muted); font-size: .75rem; border-left: 1px solid var(--border); padding-left: 14px; }
.site-nav { display: flex; gap: 19px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: .82rem; color: #d0ddeb; }
.site-nav a:hover { color: var(--cyan); }
.hero {
  background: linear-gradient(180deg, rgba(10,14,23,.32), rgba(10,14,23,.65) 68%, var(--background) 100%),
    url("/wf-bg.webp") center 42% / cover no-repeat;
  text-align: center;
}
.hero-inner { padding-block: 54px 69px; }
.event-name { color: #dcf6fb; font-weight: 600; letter-spacing: .15em; font-size: .84rem; }
.event-name span { color: var(--cyan); margin-inline: .18em; }
.hero h1 { margin-block: 12px 10px; font-size: clamp(1.9rem, 5vw, 3.35rem); line-height: 1.2; letter-spacing: .02em; text-shadow: 0 4px 28px #000b; }
.hero h1 span { color: var(--cyan); }
.hero-copy { font-size: .96rem; color: #d7e4f3; text-shadow: 0 2px 10px #000; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 23px; }
.primary, .small-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 999px; font-weight: 700; min-height: 44px; padding: 9px 20px; }
.primary { background: linear-gradient(100deg, #03edfe, #63a2ff); color: #071521; box-shadow: 0 5px 19px #03edfe16; }
.primary:hover:not(:disabled) { filter: brightness(1.12); }
.primary:disabled { color: #9baec5; background: #243248; box-shadow: none; }
.small-button { color: var(--cyan); background: #163146; white-space: nowrap; font-size: .86rem; }
.small-button:hover:not(:disabled) { background: #1f455d; }
.secondary-button { border: 1px solid #527386; color: #e3f6ff; background: #122030bb; text-decoration: none; }
.text-button { border: 0; padding: 0; color: var(--cyan); background: none; text-decoration: underline; text-underline-offset: .21em; }
.guide-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.guide-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 5px 12px; background: #101c2bd9; border: 1px solid #31536a; border-radius: 8px; color: #e7faff; font-size: .8rem; font-weight: 650; }
.guide-link:hover { border-color: var(--cyan); background: #153249; }
.guide-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 5px; color: var(--cyan); background: #1b3b50; font-size: .72rem; font-weight: 750; }
.guide-arrow { color: var(--cyan); font-size: 1.05rem; line-height: 1; }

.benefits-section { position: relative; margin-top: -22px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: center; margin-bottom: 15px; }
.section-heading h2, .rules-section > h1 { font-size: 1.4rem; letter-spacing: .03em; }
.section-heading p { color: var(--muted); font-size: .87rem; margin-top: 3px; }
.section-heading > .text-button { font-size: .84rem; }
.registration-strip, .contribution-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 11px; color: #c4d4e6; background: #101a28; font-size: .87rem; margin-bottom: 13px; }
.registration-strip > div { display: flex; flex-wrap: wrap; gap: 3px 20px; }
.registration-strip strong { color: white; overflow-wrap: anywhere; }
.identity-clan { color: var(--cyan); }
.registration-strip .text-button { white-space: nowrap; }
.benefit-shell { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #2b425a; border-radius: 16px; overflow: hidden; background: var(--panel); }
.benefit-panel { padding: 23px; min-width: 0; display: flex; flex-direction: column; }
.benefit-panel + .benefit-panel { border-left: 1px solid var(--border); }
.benefit-panel > h3 { font-size: 1.08rem; color: #e2f6ff; margin-bottom: 18px; }
.trial-art { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 210px; padding: 25px; border-radius: 11px; background: linear-gradient(90deg,#0a19259c,#0a192566),url("/wf-bg.webp") 46% 50% / cover; }
.trial-game { font-size: .74rem; font-weight: 650; letter-spacing: .19em; color: #bdeff7; }
.trial-duration { color: var(--cyan); display: flex; align-items: baseline; gap: 7px; line-height: 1; margin-block: 4px 8px; }
.trial-duration strong { font-size: 6.4rem; letter-spacing: -.06em; }
.trial-duration span { font-size: 1.2rem; font-weight: 700; }
.trial-action { padding-top: 17px; }
.trial-action > p:first-child { font-size: .83rem; margin-bottom: 12px; }
.trial-action .primary { width: 100%; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 12px; font-size: .9rem; color: #c5d6e6; }
.offer-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.offer { position: relative; display: grid; grid-template-columns: 55px 110px 1fr; align-items: center; column-gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 14px 17px; margin: 0; min-height: 77px; min-width: 0; background: radial-gradient(ellipse at 52% 0,#1e344a,transparent 75%),#0d1725; cursor: pointer; }
.offer input { position: absolute; top: 50%; transform: translateY(-50%); right: 14px; width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--cyan); }
.offer-name { color: #dbe7f3; font-size: .94rem; letter-spacing: .08em; }
.discount { display: flex; align-items: baseline; gap: .28em; color: var(--cyan); white-space: nowrap; }
.discount strong { font-size: 2.55rem; line-height: 1.05; font-weight: 750; letter-spacing: -.06em; }
.discount > span { font-size: 1rem; font-weight: 700; }
.plan-state { justify-self: end; padding-right: 27px; font-size: .76rem; color: #a7bbd0; white-space: nowrap; }
.annual { border-color: #6c5739; background: radial-gradient(ellipse at 50% 0,#352e29,transparent 80%),#0d1725; }
.annual .discount { color: var(--gold); }
.offer.selected { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.offer.selected .plan-state { color: var(--cyan); }
.offer.unavailable { opacity: .56; cursor: default; }
.coupon-action { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; }
.coupon-action .primary { width: 100%; }
.contribution-strip { margin-top: 12px; margin-bottom: 0; background: transparent; }
.contribution-strip .text-button { white-space: nowrap; font-size: .82rem; }

.rankings-section { padding-top: 42px; }
.section-heading .rankings-intro { margin-top: 8px; color: #cbddeb; font-size: .94rem; }
.rankings-intro strong { color: var(--cyan); font-weight: 650; }
.ranking-schedule { color: #bbcbde; font-size: .875rem; }
.clan-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 18px; width: min(830px,100%); margin: 72px auto 26px; }
.podium-card { --medal: #cad8ea; --medal-rgb: 202,216,234; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 310px; padding: 58px 18px 22px; text-align: center; border: 1px solid #5a6477; border-radius: 15px; background: radial-gradient(ellipse at 50% 0,rgba(var(--medal-rgb),.13),transparent 75%),#111a29; box-shadow: inset 0 1px 0 rgba(var(--medal-rgb),.12); margin-top: 30px; }
.podium-1 { --medal: #f5d395; --medal-rgb: 245,211,149; margin-top: 0; min-height: 340px; border-color: #a58550; background-color: #1d202a; }
.podium-3 { --medal: #e0b19b; --medal-rgb: 224,177,155; border-color: #715749; }
.podium-emblem { position: absolute; left: 50%; top: -43px; transform: translateX(-50%); display: grid; place-items: center; width: 86px; height: 86px; border: 2px solid var(--medal); border-radius: 50%; color: var(--medal); background: radial-gradient(circle at 35% 25%,rgba(var(--medal-rgb),.26),#111b29 75%),#111b29; box-shadow: 0 0 0 6px #0a0e17,0 10px 24px #0005; font-size: 2.6rem; line-height: 1; font-weight: 750; font-family: Georgia,serif; }
.podium-1 .podium-emblem { width: 98px; height: 98px; top: -49px; font-size: 3.1rem; }
.podium-title { color: var(--medal); font-size: .875rem; font-weight: 600; letter-spacing: .08em; }
.podium-prize { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; column-gap: 6px; margin-top: 10px; color: var(--medal); }
.podium-prize strong { font-size: 3.25rem; font-weight: 750; line-height: 1.15; letter-spacing: -.04em; }
.podium-prize span { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.podium-1 .podium-prize strong { font-size: 4rem; text-shadow: 0 3px 24px #f5d39526; }
.podium-names { display: grid; gap: 12px; margin-block: 15px; overflow-wrap: anywhere; font-size: 1.125rem; font-weight: 650; line-height: 1.55; }
.podium-1 .podium-names { font-size: 1.25rem; }
.podium-names .podium-vacant { color: #a7b4c7; font-weight: 400; }
.podium-position { color: #b4c1d2; font-size: .875rem; margin-top: auto; }
.podium-card.my-clan { box-shadow: inset 0 -3px 0 #03edfe; }
.my-clan-name { color: var(--cyan); }
.rankings-search { border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: #0e1724; }
.rankings-search > label { margin-bottom: 10px; font-size: 1rem; }
.rankings-search > input { max-width: 460px; }
.clan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-top: 14px; }
.clan-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 100px; padding: 17px 20px; border: 1px solid var(--border); border-radius: 10px; background: #101a28; gap: 12px; }
.clan-card h3 { font-size: .93rem; font-weight: 600; overflow-wrap: anywhere; }
.clan-position { color: #bdd5e8; font-size: .86rem; }
.clan-card.my-clan { border-color: #3c8c9b; background: #122631; }
.clan-card.my-clan .clan-position { color: var(--cyan); }
.rank-search-help { margin-top: 10px; }
.clan-card.has-reward-progress { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; }
.clan-card.has-reward-progress h3 { font-size: 1rem; }
.clan-reward-progress { grid-column: 1 / -1; border-top: 1px solid #31515d; padding-top: 15px; }
.clan-reward-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; font-size: .875rem; }
.clan-reward-heading strong { color: var(--cyan); font-size: 1rem; }
.clan-reward-progress progress { display: block; appearance: none; width: 100%; height: 8px; margin-block: 12px; border: 0; border-radius: 8px; overflow: hidden; background: #263e49; accent-color: var(--cyan); }
.clan-reward-progress progress::-webkit-progress-bar { background: #263e49; border-radius: 8px; }
.clan-reward-progress progress::-webkit-progress-value { background: var(--cyan); border-radius: 8px; }
.clan-reward-progress progress::-moz-progress-bar { background: var(--cyan); border-radius: 8px; }
.clan-reward-status { color: #e3f5fc; font-size: .875rem; }
.clan-reward-note { margin-top: 7px; color: #b2c7d5; font-size: .875rem; }
.clan-reward-progress.qualified .clan-reward-heading strong, .clan-reward-progress.qualified .clan-reward-status { color: var(--gold); }
.clan-reward-progress.qualified progress { accent-color: var(--gold); }
.clan-reward-progress.qualified progress::-webkit-progress-value { background: var(--gold); }
.clan-reward-progress.qualified progress::-moz-progress-bar { background: var(--gold); }
.cooperation-link { display: inline-block; margin-top: 13px; font-size: .82rem; }
.excellent-reward { margin-bottom: 16px; padding: 17px 20px; border: 1px solid #5c4d32; border-radius: 12px; background: linear-gradient(110deg,#28231b,#111a28 75%); display: flex; gap: 10px 24px; align-items: baseline; flex-wrap: wrap; }
.excellent-reward h3 { color: var(--gold); font-size: .94rem; }
.excellent-reward p { font-size: .875rem; color: #c5d2e2; }
.excellent-reward strong { color: #f5d395; }
.excellent-reward p span { color: #a8b8cb; }
.rules-page { max-width: 920px; padding-top: 32px; }
.rules-section { padding: 28px; border: 1px solid var(--border); border-radius: 14px; background: #0d1520; }
.rules-intro { margin-top: 10px; color: #b9cce0; font-size: .94rem; }
.rules-list { display: grid; gap: 18px; padding-inline-start: 23px; margin: 20px 0 0; }
.rules-list li { padding-left: 5px; }
.rules-list li::marker { color: var(--cyan); font-size: .85rem; }
.rules-list h3 { font-size: .9rem; margin-bottom: 4px; font-weight: 650; }
.rules-list p { font-size: .875rem; line-height: 1.85; color: #b9c9dc; }
.rules-list p + p { margin-top: 8px; }
.rules-list strong { color: #dce8f3; font-weight: 600; }
.rules-table { margin-block: 12px 8px; font-size: .875rem; }
.rules-table th, .rules-table td { padding: 12px 10px; }
.rules-table th { white-space: normal; }
.rules-table th[scope="row"] { color: #b9cce0; font-weight: 400; }
.rules-table td { color: #dce8f3; }
.rules-table thead { background: #162233; }
.rules-table th:first-child, .rules-table td:first-child { padding-left: 10px; }
.page-footer { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-block: 20px 36px; font-size: .76rem; color: var(--muted); }
.support-contact { color: #cbddeb; font-size: .875rem; }
.footer-links { display: flex; gap: 20px; }

dialog { width: min(470px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 1px solid #2f435a; border-radius: 18px; color: var(--text); background: var(--panel); }
dialog::backdrop { background: #050910bb; backdrop-filter: blur(4px); }
.dialog-inner { position: relative; padding: 28px; }
.dialog-inner h2 { margin: 0 32px 19px 0; font-size: 1.35rem; }
.close-button { position: absolute; right: 12px; top: 11px; width: 40px; height: 40px; color: var(--muted); background: transparent; border: 0; font-size: 1.65rem; border-radius: 50%; }
.close-button:hover { color: white; background: #1a293c; }
label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; }
input, select { width: 100%; min-width: 0; min-height: 44px; padding: 8px 11px; border: 1px solid #30445c; border-radius: 9px; background: #0a121f; color: var(--text); }
input::placeholder { color: #8e9bb0; }
.field-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.field-heading .text-button { font-size: .8rem; margin-bottom: 6px; }
.field-help { color: var(--muted); margin-block: 8px; font-size: .83rem; }
.dialog-inner .primary { width: 100%; margin-top: 14px; }
.dialog-switch { display: block; margin: 15px auto 0; font-size: .85rem; }
.code-field { display: flex; gap: 8px; }
.code-field input { font-family: ui-monospace,Consolas,monospace; font-weight: 650; color: var(--cyan); }
.feedback { color: #ffb6ad; font-size: .85rem; margin-block: 10px 0; }
.feedback.success { color: #a5efd1; }
.clan-options { display: grid; gap: 6px; max-height: 160px; overflow: auto; margin-top: 8px; }
.clan-option { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin: 0; cursor: pointer; font-size: .83rem; font-weight: 400; }
.clan-option:has(input:checked) { border-color: #238e9f; color: #c6f5fc; background: #153044; }
.clan-option input { width: 15px; height: 15px; min-height: 0; margin: 0; accent-color: var(--cyan); flex-shrink: 0; }
.registration-note { margin-top: 13px; font-size: .76rem; }
.confirmation-plan { padding: 14px; border: 1px solid #278292; border-radius: 10px; background: #153044; color: var(--cyan); font-size: 1.3rem; font-weight: 700; }
.confirmation-details { margin: 16px 0; font-size: .86rem; }
.confirmation-details div { display: flex; justify-content: space-between; gap: 14px; margin-top: 7px; }
.confirmation-details dt { color: var(--muted); flex-shrink: 0; }
.confirmation-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.confirmation-notice { color: #f2d9a0; font-size: .9rem; line-height: 1.8; }

.guide-dialog { width: min(840px,calc(100% - 32px)); }
.guide-dialog h2 { margin-bottom: 12px; }
.guide-intro, .guide-note { color: var(--muted); font-size: .9rem; }
.guide-steps { display: grid; gap: 6px; margin-block: 12px 18px; padding-inline-start: 24px; font-size: .94rem; }
.guide-steps li { padding-left: 3px; }
.guide-steps li::marker { color: var(--cyan); font-weight: 700; }
.guide-steps strong { color: #dff8ff; }
.guide-images { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.guide-images figure { min-width: 0; }
.guide-images img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 9px; }
.guide-images figcaption { margin-top: 5px; font-size: .82rem; color: var(--muted); }
.guide-note { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--border); }
.guide-shot { position: relative; }
.shot-highlight { position: absolute; border: 2px solid var(--cyan); border-radius: 6px; pointer-events: none; }
.settings-highlight { left: 66%; top: 12%; width: 11%; height: 75%; }
.redeem-highlight { left: 4%; top: 8%; width: 19%; height: 83%; }
.copy-highlight { left: 50%; top: 63%; width: 9%; height: 26%; }
.redeem-input-highlight { left: 9.6%; top: 52.7%; width: 81%; height: 11.8%; border-color: #006b8d; border-radius: 99px; }

.admin { padding-block: 35px 60px; }
.admin h1 { font-size: clamp(1.65rem,4vw,2.15rem); }
.brandbar:has(.back-link) { position: sticky; top: 0; z-index: 10; box-shadow: 0 5px 22px #0004; }
.back-link { margin-left: auto; font-size: .88rem; min-width: 140px; text-decoration: none; white-space: nowrap; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.panel { padding: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; min-width: 0; }
.panel h2 { font-size: 1.15rem; margin-bottom: 10px; }
.import-field { margin-bottom: 12px; }
.import-columns { margin-block: 8px 12px; color: var(--muted); font-size: .875rem; }
.import-columns code { color: #d9e9f6; font-family: inherit; overflow-wrap: anywhere; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.preview { margin-top: 13px; border-top: 1px solid var(--border); padding-top: 12px; }
.preview ul { margin-block: 6px; padding-inline-start: 20px; color: var(--muted); font-size: .85rem; }
.history { margin-top: 18px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .83rem; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; }
td { overflow-wrap: anywhere; }
.admin-time { min-width: 155px; }
.admin-note { color: #c6d7e6; font-size: .8rem; }
.admin-summary { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .87rem; }
.admin-summary strong { color: var(--text); }
.admin-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.clan-add-form { display: flex; align-items: flex-end; gap: 12px; margin: 15px 0; }
.clan-add-form > div { flex: 1; max-width: 480px; }
.clan-add-form .primary { flex-shrink: 0; }
.delete-clan-button { color: #ffb9bd; background: #38242e; }
.delete-clan-button:hover:not(:disabled) { background: #51303d; }
.primary.danger-button { background: #dc5665; color: #fff; box-shadow: none; }

@media (max-width: 850px) {
  .brand-caption { display: none; }
  .site-nav { gap: 16px; }
  .offer { grid-template-columns: 44px 90px 1fr; padding-inline: 12px; column-gap: 5px; }
  .clan-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .hero-inner { padding-block: 43px 55px; }
  .admin-grid { grid-template-columns: 1fr; }
  .benefit-shell { grid-template-columns: 1fr; }
  .benefit-panel + .benefit-panel { border-left: 0; border-top: 1px solid var(--border); }
  .trial-art { min-height: 180px; }
  .clan-grid { gap: 10px; }
  .clan-card { padding: 14px; }
}
@media (max-width: 480px) {
  .brand-inner { flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; padding-block: 12px 9px; }
  .brand-inner > a { order: 0; }
  .site-nav { order: 2; width: 100%; margin: 0; justify-content: space-between; gap: 8px; }
  .site-nav a { font-size: .76rem; }
  .hero-inner { padding-block: 32px 46px; }
  .event-name { font-size: .7rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero-copy { font-size: .79rem; }
  .hero-actions { gap: 8px; margin-top: 20px; }
  .hero-actions .primary, .hero-actions .secondary-button { padding-inline: 14px; font-size: .8rem; }
  .guide-actions { gap: 8px; margin-top: 12px; }
  .guide-link { gap: 5px; padding-inline: 8px; font-size: .75rem; }
  .guide-icon { width: 20px; height: 20px; font-size: .65rem; }
  .benefits-section { margin-top: -16px; }
  .section-heading h2, .rules-section > h1 { font-size: 1.18rem; }
  .section-heading { gap: 8px; }
  .section-heading > .text-button { font-size: .76rem; }
  .registration-strip { padding: 10px 12px; font-size: .76rem; }
  .registration-strip .small-button { padding: 6px 12px; font-size: .76rem; }
  .registration-strip > p { max-width: 200px; }
  .benefit-panel { padding: 15px; }
  .benefit-panel > h3 { font-size: .97rem; }
  .benefit-panel > h3 { margin-bottom: 14px; }
  .trial-art { min-height: 165px; }
  .trial-duration strong { font-size: 5rem; }
  .trial-action > p:first-child { font-size: .8rem; margin-bottom: 10px; }
  .offer-grid { gap: 8px; }
  .offer { padding: 12px; grid-template-columns: 42px 92px 1fr; min-height: 72px; column-gap: 6px; }
  .offer input { right: 12px; width: 15px; height: 15px; }
  .offer-name { font-size: .8rem; }
  .discount { gap: 4px; }
  .discount strong { font-size: 2.4rem; }
  .discount > span { font-size: .8rem; }
  .plan-state { font-size: .7rem; padding-right: 23px; }
  .coupon-action { margin-top: 10px; gap: 5px; }
  .coupon-action .primary { width: 100%; }
  .contribution-strip { align-items: start; font-size: .75rem; padding: 10px 12px; }
  .contribution-strip .text-button { font-size: .74rem; }
  .rankings-section { padding-top: 30px; }
  .clan-podium { gap: 8px; margin-top: 62px; margin-bottom: 20px; }
  .podium-card { padding: 43px 8px 16px; min-height: 282px; margin-top: 24px; border-radius: 11px; }
  .podium-1 { margin-top: 0; min-height: 306px; }
  .podium-emblem { width: 62px; height: 62px; top: -31px; font-size: 2rem; box-shadow: 0 0 0 4px #0a0e17; }
  .podium-1 .podium-emblem { width: 72px; height: 72px; top: -36px; font-size: 2.4rem; }
  .podium-title { font-size: .875rem; letter-spacing: 0; }
  .podium-prize { flex-direction: column; align-items: center; gap: 2px; margin-top: 9px; }
  .podium-prize strong { font-size: 2.25rem; }
  .podium-1 .podium-prize strong { font-size: clamp(2.25rem,11.3vw,2.75rem); }
  .podium-names, .podium-1 .podium-names { font-size: .875rem; margin-block: 12px; }
  .podium-position { font-size: .875rem; }
  .rankings-search { padding: 15px; }
  .rankings-search > input { max-width: none; }
  .clan-grid { grid-template-columns: 1fr; gap: 8px; }
  .clan-card { flex-direction: row; min-height: 0; align-items: center; padding: 14px; }
  .clan-card h3 { font-size: .82rem; }
  .clan-position { font-size: .8rem; flex-shrink: 0; }
  .excellent-reward { padding: 14px; gap: 6px; }
  .excellent-reward p { font-size: .875rem; }
  .rules-page { padding-top: 20px; }
  .rules-section { padding: 20px 17px; }
  .rules-list { padding-inline-start: 18px; gap: 15px; }
  .rules-list p { font-size: .875rem; }
  .rules-table th, .rules-table td { padding: 9px 6px; }
  .rules-table th:first-child, .rules-table td:first-child { padding-left: 6px; }
  .back-link { min-width: 132px; padding-inline: 16px; }
  .dialog-inner { padding: 23px; }
  .guide-images { grid-template-columns: 1fr; gap: 12px; }
}
.clan-registration-page { background-image: linear-gradient(180deg,#0a0e1777,#0a0e17 96%),url("/wf-bg.webp"); background-position: center 64px; background-size: 100% 650px; background-repeat: no-repeat; }
.clan-registration-main { width: min(700px,calc(100% - 32px)); margin-inline: auto; padding-block: 36px 12px; }
.clan-registration-heading { text-align: center; margin-bottom: 24px; }
.clan-registration-heading h1 { margin-top: 10px; font-size: clamp(1.8rem,5vw,2.5rem); letter-spacing: .06em; }
.clan-registration-heading h1 span { color: var(--cyan); }
.clan-registration-card { padding: 28px; border: 1px solid #2b425a; border-radius: 16px; background: #101826f5; box-shadow: 0 18px 55px #03060d55; }
.clan-basic-fields { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.application-field { margin-top: 22px; }
.application-field legend { margin-bottom: 8px; color: var(--text); font-size: .9rem; font-weight: 650; }
.application-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.application-options label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 14px; border: 1px solid #30445c; border-radius: 9px; color: #becfe1; background: #0d1623; cursor: pointer; }
.application-options label:has(input:checked) { color: #dffaff; border-color: #218d9f; background: #153044; }
.application-options input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--cyan); }
.contact-options { margin-bottom: 10px; }
.application-contact-note { color: #f1ce8c; font-size: .82rem; margin-top: 8px; }
#submit-clan-application { margin-top: 22px; width: 100%; }
.application-next-step { padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--border); color: #bed3e3; text-align: center; font-size: .86rem; }
.application-success { text-align: center; padding-block: 12px; }
.application-success-mark { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 14px; background: #143a3c; border-radius: 50%; color: var(--cyan); font-size: 1.5rem; }
.application-success h2 { font-size: 1.4rem; margin-bottom: 13px; }
.application-success > p { color: var(--muted); font-size: .9rem; }
.application-success .field-help { margin-block: 16px; font-size: .76rem; }
#application-reference { overflow-wrap: anywhere; }
.application-success .primary { width: 100%; text-decoration: none; }
.application-review-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 180px; }
.application-review-actions button { font-size: .75rem; padding: 6px 10px; min-height: 36px; }
@media (max-width: 480px) {
  .clan-registration-main { padding-top: 26px; }
  .clan-add-form { align-items: stretch; flex-direction: column; gap: 9px; }
  .clan-add-form > div { max-width: none; }
  .clan-management-table { font-size: .74rem; }
  .clan-management-table th, .clan-management-table td { padding: 9px 5px; }
  .clan-management-table th:first-child, .clan-management-table td:first-child { display: none; }
  .clan-management-table th:nth-child(2), .clan-management-table td:nth-child(2) { padding-left: 0; width: 40%; min-width: 85px; }
  .clan-management-table th:last-child, .clan-management-table td:last-child { padding-right: 0; white-space: nowrap; }
  .clan-management-table .delete-clan-button { min-height: 36px; padding: 5px 9px; font-size: .74rem; }
  .clan-registration-heading { margin-bottom: 18px; }
  .clan-registration-heading .event-name { font-size: .7rem; }
  .clan-registration-card { padding: 22px; }
  .clan-basic-fields { grid-template-columns: 1fr; gap: 17px; }
  .application-options { gap: 9px; }
  .application-options label { padding-inline: 12px; font-size: .85rem; }
  .application-next-step { font-size: .8rem; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.admin-login { max-width: 480px; padding-top: 64px; }
.admin-login h1 { margin-bottom: 28px; }
#admin-login-form { display: grid; gap: 16px; }
