@import url("https://fonts.googleapis.com/css2?family=Huninn&display=swap");
/* AKPI_ROUNDED_TYPE_2PX_V1 */
:root{--ink:#17243b;--muted:#69778b;--line:#e0e7f1;--blue:#245cec;--soft:#eaf0ff;--surface:#fff;--canvas:#f3f6fb}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font:17px/1.65 system-ui,-apple-system,"Microsoft JhengHei",sans-serif}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}.battle-header{background:#14233c;color:#fff;padding:18px 26px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.battle-brand{display:flex;align-items:center;gap:12px;color:#fff;font-size:21px;font-weight:600}.battle-logo{background:var(--blue);padding:4px 10px;border-radius:10px}.battle-header nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:15px}.battle-header a{color:#fff}.battle-login{padding:7px 12px;border:1px solid #526888;border-radius:8px}.battle-shell{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:calc(100vh - 80px)}.battle-sidebar{background:#fff;border-right:1px solid var(--line);padding:28px 16px}.battle-sidebar small{display:block;color:var(--muted);font-size:13px;letter-spacing:.12em;margin:0 12px 18px}.battle-sidebar a,.battle-sidebar .pending-nav{display:flex;align-items:center;gap:10px;padding:11px 12px;margin-bottom:6px;border-radius:8px;color:var(--ink);font-size:16px}.battle-sidebar a.active{background:var(--soft);color:var(--blue);font-weight:600}.battle-sidebar .pending-nav{color:var(--muted)}.battle-sidebar .pending-nav small{letter-spacing:0;margin:0;font-size:12px}.battle-workspace{min-width:0;padding:28px}.page,main{max-width:1180px;margin:0 auto;padding:0}.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;margin:0 0 20px;box-shadow:none}h1{font-size:30px;line-height:1.3;margin:0 0 18px;color:var(--ink);font-weight:600}h2{font-size:22px;margin:0 0 16px;color:var(--ink);font-weight:600}h3{font-size:19px;font-weight:600}.eyebrow{font-size:13px;letter-spacing:.13em;color:var(--blue);font-weight:600;margin:0 0 8px}p{color:var(--muted)}label{display:block;font-size:15px;color:var(--muted);margin:12px 0 6px}input,select,textarea{font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff;width:100%;max-width:100%;margin:0 0 12px;min-width:0}input[type=checkbox],input[type=radio]{width:auto}input:focus,textarea:focus,select:focus{outline:2px solid #94b2ff;outline-offset:1px}textarea{min-height:120px;resize:vertical}button,a.btn,.btn{display:inline-block;border:0;background:var(--blue);color:#fff;padding:10px 15px;border-radius:8px;font:500 16px/1.4 system-ui;cursor:pointer;text-decoration:none;margin:4px 6px 4px 0;vertical-align:middle}button:hover,a.btn:hover{background:#194bca;text-decoration:none}button:disabled{opacity:.55;cursor:default}.secondary,.secondary-btn,.gray,button.gray,a.gray{background:var(--soft);color:var(--blue)}.secondary:hover,.secondary-btn:hover,.gray:hover{background:#dce7ff}.main-btn{width:100%;margin:12px 0 6px}.secondary-btn{width:100%;margin:6px 0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid .card{margin-bottom:20px;min-width:0}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:16px}th,td{border-bottom:1px solid var(--line);padding:12px 8px;text-align:left;vertical-align:middle;overflow-wrap:anywhere}th{font-size:14px;color:var(--muted);background:#f8faff;font-weight:500}td button{padding:7px 11px;font-size:14px}.tag,.status-box{display:inline-block;background:var(--soft);color:var(--blue);padding:4px 10px;border-radius:18px;font-size:14px}.event-box,.event-meta,.role-box,.sub,.tip{color:var(--muted);margin:0 0 16px}.event-box{padding:16px;background:var(--canvas);border-radius:10px}.msg{color:var(--blue);white-space:pre-line;margin-top:12px;font-weight:500}.empty,.empty-row,.empty-text{padding:18px;color:var(--muted)}.muted,.loser,.loser-text{color:var(--muted)}.winner,.winner-text{color:#197447;font-weight:600}.round-separator{font-size:20px;font-weight:600;margin:22px 0 12px;padding-top:18px;border-top:1px solid var(--line)}.bracket-item{border:1px solid var(--line);padding:16px;border-radius:10px;margin-bottom:12px;background:#fff}.callout{color:var(--blue);font-weight:600}.action-group,.links{display:flex;flex-wrap:wrap;gap:8px}.match{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid var(--line);padding:18px 0}.score{width:76px;font-size:26px;text-align:center}.notice{background:#fff8df;border:1px solid #e8d197;border-radius:10px;padding:12px;display:none;white-space:pre-wrap;margin:16px 0}.qr{width:220px;max-width:100%;display:block}.hidden{display:none!important}.field{margin-bottom:12px}.topbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.battle-auth .page{max-width:480px;margin:30px auto}.battle-auth .battle-shell{display:block}.battle-auth .battle-sidebar{display:none}.battle-auth .card{padding:30px}.page-scroll-buttons,.scroll-buttons{position:fixed;bottom:20px;right:20px;display:flex;flex-direction:column;gap:8px;z-index:5}.page-scroll-btn,.scroll-buttons button{border-radius:10px;margin:0;padding:10px 14px}dialog{border:1px solid var(--line);border-radius:14px;padding:26px;max-width:94vw;background:white;color:var(--ink)}dialog::backdrop{background:#14233c80}small{color:var(--muted)}details.card{margin-top:20px}.battle-back{margin:0 auto 18px;max-width:1180px;font-size:15px}.battle-card-title{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}@media(max-width:850px){.battle-shell{grid-template-columns:160px minmax(0,1fr)}.battle-workspace{padding:20px}.grid{grid-template-columns:1fr}.card{padding:20px}}@media(max-width:600px){.battle-shell{display:block}.battle-sidebar{display:none}.battle-header{padding:16px}.battle-header nav{gap:10px;font-size:14px}.battle-brand{font-size:19px}.battle-login{padding:6px 8px}.battle-workspace{padding:18px 14px}h1{font-size:26px}h2{font-size:21px}.card{padding:18px;border-radius:12px}table{font-size:14px}th,td{padding:10px 5px}input,select,textarea{font-size:18px}.battle-auth .page{margin:12px auto}.battle-auth .card{padding:22px}.page-scroll-buttons,.scroll-buttons{right:8px;bottom:8px}}
/* Member page retains existing account/prize functions under the same chrome. */
.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:none;padding:24px;margin-bottom:20px}.panel-title,.title{color:var(--ink)!important}.summary{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.user-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.span-2{grid-column:span 2}.panel .field input,.panel .field textarea{border:1px solid var(--line);border-radius:8px;color:var(--ink)}.panel .field label{color:var(--muted)}@media(max-width:750px){.summary,.user-grid{grid-template-columns:1fr}.span-2{grid-column:auto}}

.panel-title,.title{font-weight:600!important}.battle-sidebar a{white-space:normal}
/* Unified dark tournament platform. */
:root{color-scheme:dark;--ink:#eaf0ff;--muted:#a4b3cd;--line:#2b3b55;--blue:#83adff;--soft:#203655;--surface:#172237;--canvas:#0c1424}body{background:var(--canvas)!important;color:var(--ink)}.battle-header{background:#101b2d;border-bottom:1px solid var(--line)}.battle-brand,.battle-header a{color:#eef4ff}.battle-logo{background:#3265d6;color:#fff}.battle-sidebar{background:#101b2d;border-right:1px solid var(--line)}.battle-sidebar a{color:var(--ink)}.battle-sidebar a.active{background:#223b63;color:#b8d0ff}.card,.panel,.bracket-item,.field-builder-row{background:var(--surface)!important;border-color:var(--line);box-shadow:none}input,select,textarea,.panel .field input,.panel .field textarea{background:#101b2d!important;color:var(--ink)!important;border-color:var(--line)}input[readonly]{background:#162337!important}button,a.btn,.btn,.main-btn{background:#3265d6;color:#fff}.secondary,.secondary-btn,.gray,button.gray,a.gray{background:#233a5d;color:#b9d1ff}button:hover,a.btn:hover{background:#3e73e8}.secondary:hover,.secondary-btn:hover,.gray:hover{background:#2a4773}.tag,.status-box{background:#203655;color:#c0d6ff}th{background:#101b2d;color:#b4c3db}td{background:transparent}.winner,.winner-text{color:#84d7b2}.notice,.editor-notice{background:#3b321e;color:#f4dfab;border:1px solid #766540}.panel-title,.title,h1,h2,h3{color:var(--ink)!important}dialog{background:var(--surface)!important;color:var(--ink)!important}.event-box{background:#101b2d}.battle-workspace{padding:30px}.inline-check{display:flex;align-items:center;gap:10px}.inline-check input{width:auto;margin:0}.editor-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.editor-notice{padding:12px 16px;border-radius:10px;margin:16px 0}.editor-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:20px}.field-builder-row{border:1px solid var(--line);border-radius:12px;padding:18px;margin:16px 0}.field-builder-row .grid{align-items:center}.field-builder-row textarea{min-height:72px}.poster-placeholder{border:1px dashed #506483;border-radius:12px;min-height:180px;background:#101b2d;display:grid;place-items:center;margin-bottom:18px}.poster-placeholder img{max-width:100%;max-height:540px;border-radius:10px;object-fit:contain}.form-question{padding:18px;border:1px solid var(--line);border-radius:10px;margin:14px 0;background:#101b2d}.form-question label{color:var(--ink);margin-top:0}.form-question input[type=checkbox]{width:22px;height:22px}.required-star{color:#ffb29e}.event-introduction{white-space:pre-wrap;color:#c4d0e3;line-height:1.85;margin:20px 0}.event-poster{width:100%;max-height:560px;object-fit:contain;border-radius:12px;background:#101b2d;margin:20px 0}.intro-meta{display:flex;flex-wrap:wrap;gap:18px;color:#bccde9}.response-sheet{max-height:650px;overflow:auto;border:1px solid var(--line);border-radius:10px}.response-sheet table{width:max-content;min-width:100%}.response-sheet th{position:sticky;top:0;z-index:1}.response-sheet td,.response-sheet th{min-width:140px;border-right:1px solid var(--line);white-space:nowrap}.response-sheet td:first-child{min-width:180px}.response-sheet input,.response-sheet select{width:160px;margin:0;padding:7px 10px}.response-sheet textarea{width:200px;min-height:56px;margin:0}.response-sheet input[type=checkbox]{width:20px;height:20px}.response-sheet td:last-child{min-width:270px;white-space:normal}.home-hero{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:46px 40px;background:linear-gradient(120deg,#17294a,#15213a 65%,#1f385c);border:1px solid #30486d;border-radius:20px;margin-bottom:38px}.home-hero h1{font-size:42px;line-height:1.35;margin:12px 0 18px}.home-hero p{color:#bdcce4}.hero-ring{width:250px;height:250px;border:2px solid #4168a5;border-radius:50%;box-shadow:0 0 0 24px #28477555,0 0 0 50px #28477522;display:grid;place-content:center;text-align:center;color:#91bbff;flex-shrink:0;margin:20px}.hero-ring>span{font-size:82px;line-height:1.1}.hero-ring>div{letter-spacing:.17em;font-size:14px;margin-top:12px}.event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.event-tile{display:block;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);text-decoration:none}.event-tile:hover{border-color:#6688be;text-decoration:none}.event-cover{height:200px;position:relative;display:grid;place-items:center;background:linear-gradient(140deg,#253e65,#192940)}.event-cover img{width:100%;height:100%;object-fit:cover}.event-cover>.tag{position:absolute;left:14px;top:14px}.cover-symbol{font-size:74px;color:#94b7ed}.event-tile-content{padding:20px}.event-tile-content h3{margin:0 0 10px;font-size:21px}.event-tile-content p{font-size:15px;margin:8px 0}.event-description-preview{color:var(--muted);font-size:15px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;white-space:pre-wrap;margin:16px 0}.tile-link{color:#a6c7ff;font-size:15px}.home-filters{display:flex;gap:8px}.home-filters .is-selected{background:#3265d6;color:#fff}.home-footer{color:var(--muted);font-size:15px;padding:30px 0;text-align:center}@media(max-width:1000px){.event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-ring{width:160px;height:160px;margin:0}.home-hero{padding:28px}.home-hero h1{font-size:34px}.editor-layout{grid-template-columns:1fr}}@media(max-width:600px){.battle-workspace{padding:20px 14px}.event-grid{grid-template-columns:1fr}.home-hero{padding:24px}.home-hero h1{font-size:31px}.hero-ring{display:none}.event-cover{height:220px}.intro-meta{gap:10px}.home-filters{flex-wrap:wrap}}
.image-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.image-choice{background:#101b2d;border:1px solid var(--line);padding:8px;margin:0;overflow:hidden;text-align:center}.image-choice img{display:block;width:100%;height:150px;object-fit:contain;border-radius:6px;background:#0c1424}.image-choice span{display:block;margin-top:8px;font-size:14px;color:#c5d8f8}.image-choice.is-selected{border:2px solid #83adff;background:#203655}.image-choice:disabled{opacity:1}.event-photo-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.event-photo-gallery a{display:block;border:1px solid var(--line);border-radius:12px;padding:10px;background:#101b2d}.event-photo-gallery img{width:100%;max-height:600px;object-fit:contain;display:block;border-radius:8px}#signupNicknameMessage{color:#bad5ff;font-size:15px;margin-left:10px}@media(max-width:600px){.event-photo-gallery{grid-template-columns:1fr}}

.image-choice-group{min-width:0;display:flex;flex-direction:column;gap:8px}.image-choice-group .image-choice{width:100%}.image-delete{width:100%}

.page-scroll-buttons{align-items:center}.page-scroll-buttons .quick-next-round{margin:0;min-width:118px;padding:12px 16px;box-shadow:0 4px 16px #0005}.quick-round-notice{position:absolute;right:calc(100% + 12px);bottom:0;width:min(280px,calc(100vw - 170px));padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 4px 16px #0005;font-size:15px;overflow-wrap:anywhere}.quick-round-notice[hidden]{display:none}@media(max-width:480px){.page-scroll-buttons .quick-next-round{min-width:108px;padding:10px 12px}.page-scroll-buttons{gap:6px}}
.store-hero{overflow:hidden}.store-cover{width:100%;max-height:440px;object-fit:cover;border-radius:10px;margin-bottom:22px}.store-copy{white-space:pre-line;overflow-wrap:anywhere}.store-block img{width:100%;max-height:650px;object-fit:contain;border-radius:10px}.store-split{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}.store-split.image-right img{order:2}.store-thumb{width:100%;height:180px;object-fit:contain;border-radius:10px;background:var(--canvas)}#communityNotice:not(:empty){padding:12px 16px;margin-bottom:20px;background:var(--soft);border-radius:10px;color:var(--ink)}@media(max-width:650px){.store-split{grid-template-columns:1fr}.store-split.image-right img{order:0}}
.organizer-access{max-width:920px;padding:24px 0}.access-hero{padding:36px}.access-hero h1{margin:20px 0 16px;font-size:34px}.access-contacts{margin:28px 0 22px}.access-contact{display:flex;flex-direction:column;gap:10px;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--canvas);color:var(--ink);text-decoration:none}.access-contact strong{font-size:27px;color:var(--ink)}.access-contact span:last-child{font-size:15px;color:var(--muted)}a.access-contact:hover{border-color:var(--blue);text-decoration:none;background:var(--soft)}.access-channel{color:var(--blue);font-size:15px;font-weight:600}.selectable-account{user-select:all}.access-note{font-size:15px}@media(max-width:600px){.access-hero{padding:22px}.access-hero h1{font-size:29px}.access-contacts{grid-template-columns:1fr}}
.management-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:28px 0}.management-tile{display:flex;flex-direction:column;align-items:flex-start;min-height:210px;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:16px;color:var(--ink);text-decoration:none;transition:border-color .15s,transform .15s}.management-tile:hover{border-color:var(--blue);transform:translateY(-2px);text-decoration:none}.management-tile h2{margin:16px 0 4px}.management-tile p{margin:4px 0 20px}.management-tile>span:last-child{margin-top:auto;color:var(--blue)}.tile-symbol{font-size:27px;color:var(--blue)}#managementNotice:not(:empty){padding:14px;margin:16px 0;border-radius:10px;background:var(--soft)}.member-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.member-groups a{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--ink)}.member-groups strong{display:block;font-size:28px;color:var(--blue)}@media(max-width:650px){.management-menu,.member-groups{grid-template-columns:1fr}.management-tile{min-height:180px}}

/* Shared navigation and member card spacing on desktop and mobile. */
.battle-logo{width:40px;height:40px;object-fit:contain;padding:0;background:transparent;border-radius:9px;flex-shrink:0}.battle-menu-toggle{display:none}.member-groups{margin:22px 0 24px;align-items:stretch}.member-groups a{display:flex;flex-direction:column;justify-content:space-between;gap:8px;min-width:0;text-decoration:none}.member-groups a:hover{border-color:var(--blue)}.profile-details{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;margin-bottom:24px}.profile-details>.card{min-width:0;margin:0}.profile-details h2:not(:first-child){margin-top:32px}#permissionLabel{display:inline-flex;margin:0 0 12px;padding:4px 12px;border-radius:20px;background:var(--soft);color:#c0d6ff}.grid>*{min-width:0}.card,.management-tile{overflow-wrap:anywhere}.action-group button,.action-group .btn,.editor-toolbar button{max-width:100%;white-space:normal}.scroll,.response-sheet{-webkit-overflow-scrolling:touch}a:focus-visible,button:focus-visible{outline:2px solid #a6c7ff;outline-offset:3px}
@media(max-width:850px){.profile-details{grid-template-columns:1fr}}
@media(max-width:600px){.battle-header{gap:12px;align-items:center}.battle-brand{font-size:18px;gap:8px;flex:1;min-width:0}.battle-logo{width:36px;height:36px}.battle-menu-toggle{display:inline-flex;align-items:center;min-height:40px;padding:9px 12px;margin:0;flex-shrink:0}.battle-header nav{width:100%;gap:8px 12px}.battle-header nav a{padding:5px 0}.battle-header nav .battle-login{padding:6px 8px}.battle-header nav button{margin:0;min-height:36px}.battle-sidebar.is-open,.battle-auth .battle-sidebar.is-open{display:block;border-right:0;border-bottom:1px solid var(--line);padding:16px;position:relative}.battle-sidebar.is-open a{min-height:44px}.battle-sidebar small{margin-bottom:12px}.member-groups{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:20px 0 24px}.member-groups a{padding:14px 10px;font-size:14px;line-height:1.5;gap:10px}.member-groups strong{font-size:26px}.profile-details{gap:18px;margin-bottom:24px}.management-menu{gap:16px;margin:22px 0}.management-tile{padding:22px;min-height:170px}.battle-workspace{padding:22px 14px}.editor-toolbar{gap:6px}.scroll-buttons{max-width:calc(100vw - 16px)}}

.event-list{display:flex;flex-direction:column;gap:16px;margin:22px 0}.event-list-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.4fr) auto;gap:24px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;overflow-wrap:anywhere}.event-list-row h3{margin:12px 0 8px}.event-list-row p{margin:8px 0;font-size:15px}.event-list-row dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}.event-list-row dt{font-size:14px;color:var(--muted)}.event-list-row dd{margin:4px 0 0}.event-list-row .btn{margin:0}.event-list-summary{white-space:pre-wrap}.event-filters{margin-top:22px}.event-filters label{margin-top:0}.event-filters p{margin-bottom:0;font-size:15px}#prizeFields{border:1px solid var(--line);border-radius:12px;padding:16px;margin:20px 0}#prizeFields legend{color:var(--ink)}@media(max-width:1050px){.event-list-row{grid-template-columns:1fr}.event-list-row>.btn{justify-self:start}}@media(max-width:600px){.event-list-row{padding:18px;gap:16px}.event-list-row dl{grid-template-columns:1fr}.event-list-row>.btn{justify-self:stretch;text-align:center}.event-filters .action-group button{flex:1 1 140px;margin:0}.event-list-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}}

.region-field{min-width:0;margin:12px 0 6px}.region-field>span{font-size:15px;color:var(--muted)}.region-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.region-controls label{margin:6px 0 0;min-width:0}.region-controls select{margin:6px 0 12px}.event-filters .region-field{margin-top:0}@media(max-width:380px){.region-controls{grid-template-columns:1fr;gap:0}}

/* Align the homepage region, fee and date filters. */
.event-filters > .grid {
  align-items: end;
}
.event-filters .region-field {
  margin: 0;
}
.event-filters .region-controls {
  margin-top: 8px;
}
.event-filters > .grid > label,
.event-filters .region-controls label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.event-filters > .grid > label > input,
.event-filters .region-controls select {
  height: 44px;
  margin: 0;
}
.event-filters .action-group {
  margin-top: 20px;
}

.social-login-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.social-login-buttons button{flex:1 1 150px;margin:0;min-height:44px}.social-line{background:#087c43}.social-google{background:#284f99}.social-apple{background:#080c14;border:1px solid #63718a}.social-login-buttons button:disabled{opacity:.55}#accountStatus,#verificationMessage{white-space:pre-line}

.member-avatar{width:128px;height:128px;border-radius:50%;object-fit:cover;border:1px solid var(--line);background:var(--canvas)}.ranking-person{display:inline-flex;gap:12px;align-items:center}.ranking-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0}.member-public-heading{display:flex;gap:24px;align-items:center;margin:24px 0}.member-avatar-placeholder{display:grid;place-items:center;font-size:52px;color:var(--blue);flex-shrink:0}.member-bio{white-space:pre-wrap;overflow-wrap:anywhere}.member-score-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0 24px}.member-score-pair p{margin:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--canvas)}.member-score-pair strong{display:block;color:var(--blue);font-size:26px;margin-top:8px}.points-terms li{margin-bottom:18px;line-height:1.8}#publicProfileStatus,#memberAvatarMessage{white-space:pre-line}@media(max-width:600px){.member-public-heading{gap:16px;align-items:flex-start}.member-avatar{width:88px;height:88px}.member-score-pair{gap:8px}.member-score-pair p{padding:12px}.member-score-pair strong{font-size:22px}}

/* Preserve hidden state even when labels, forms or cards define display. */
[hidden]{display:none!important}

.profile-revision-alert{border-color:#ef9a45;background:#2b231e}.profile-revision-alert h2,.profile-revision-alert p{color:#ffdbb5}

.social-facebook{background:#1877f2}.social-facebook:hover{background:#1263cb}

/* Supplied horizontal white-background page logo, preserving its aspect ratio. */
.battle-header .battle-brand .battle-logo{width:140px;height:48px;object-fit:contain;background:#fff;padding:0;border:0;border-radius:6px;flex:0 0 auto}
@media(max-width:600px){.battle-header .battle-brand{gap:8px;font-size:18px}.battle-header .battle-brand .battle-logo{width:116px;height:40px}}

/* Homepage compact list and poster cards */
.event-view-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:16px 0;color:#aab8cf}.event-view-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid #30425f;border-radius:12px;background:#142036}.event-view-switch button{width:auto;margin:0;padding:9px 15px;border:0;border-radius:8px;min-height:40px}.event-view-switch .is-selected{background:#3063d5;color:#fff}
#eventCards.event-list{display:grid;gap:12px}.home-event{min-width:0;overflow:hidden;border:1px solid #2b3d59;border-radius:16px;background:#172338}.home-event-body{min-width:0;padding:18px}.home-event-top,.home-event-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.home-event-top{justify-content:space-between}.home-event-fee{font-weight:700;color:#eef3ff}.home-event h3{margin:10px 0 8px;font-size:22px;line-height:1.35;overflow-wrap:anywhere}.home-event p{margin:8px 0;color:#aab8cf}.home-event .tag{padding:4px 10px;font-size:14px}.home-event-meta{font-size:15px;color:#b9c8dd}.home-event-region{display:inline-block;padding:3px 9px;border-radius:6px;background:#223853;color:#c5d9ff}.home-event-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.home-event .home-event-action{display:flex;align-items:center;justify-content:space-between;margin:12px 0 0;padding:10px 14px;font-size:16px}.home-event-cover{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background:#20334f;color:#9fb6d9;text-align:center;overflow:hidden}.home-event-cover img{display:block;width:100%;height:100%;object-fit:cover}.home-event-cover span{line-height:1.8;font-size:16px}
#eventCards.is-list .home-event-cover,#eventCards.is-list .home-event-summary,#eventCards.is-list .home-event-organizer{display:none}#eventCards.is-list .home-event-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:16px 18px;align-items:center}#eventCards.is-list .home-event-top{grid-column:1;justify-content:flex-start}#eventCards.is-list h3{grid-column:1;margin:0;font-size:20px}#eventCards.is-list .home-event-meta{grid-column:1}#eventCards.is-list .home-event-action{grid-column:2;grid-row:1/4;white-space:nowrap;gap:16px;margin:0}#eventCards.is-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1050px){#eventCards.is-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.event-view-toolbar{margin:12px 0;justify-content:space-between;font-size:15px}#eventCards.is-grid{grid-template-columns:1fr;gap:14px}.home-event-body{padding:14px}.home-event h3{font-size:20px}.home-event p{font-size:15px;margin:6px 0}.home-event-cover{aspect-ratio:16/9}#eventCards.is-list .home-event-body{padding:12px;gap:6px 10px}#eventCards.is-list .home-event-action{padding:9px 11px;font-size:14px;gap:5px}#eventCards.is-list h3{font-size:18px}#eventCards.is-list .home-event-meta{font-size:14px}.home-event-fee{font-size:16px}}

/* Event editor: align paired controls and keep image tools within the page. */
.event-editor-page .editor-layout{grid-template-columns:minmax(0,1fr) minmax(280px,340px);align-items:start;gap:20px}
.event-editor-page .editor-layout>.card{min-width:0;margin:0 0 20px;padding:24px}
.event-editor-page .editor-basics-grid{align-items:end;gap:20px;margin:20px 0}
.event-editor-page .editor-basics-grid>label,.event-editor-page .editor-basics-grid>.region-field{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0}
.event-editor-page .editor-basics-grid>label>input,.event-editor-page .region-controls select{height:44px;margin:0;width:100%;min-width:0;box-sizing:border-box}
.event-editor-page .editor-basics-grid label small{font-size:14px;line-height:1.5;color:var(--muted)}
.event-editor-page .region-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.event-editor-page .region-controls label{display:flex;flex-direction:column;gap:6px;margin:0}
.event-editor-page fieldset{min-width:0;margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:12px}
.event-editor-page fieldset .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.event-editor-page fieldset label{margin:0;display:flex;flex-direction:column;gap:8px}
.event-editor-page .poster-placeholder{width:100%;box-sizing:border-box;min-width:0}
@media(max-width:1100px){.event-editor-page .editor-layout{grid-template-columns:1fr}.event-editor-page .poster-placeholder{max-height:360px}}
@media(max-width:600px){.event-editor-page .editor-layout>.card{padding:16px}.event-editor-page .editor-basics-grid{grid-template-columns:1fr;gap:18px}.event-editor-page fieldset .grid{grid-template-columns:1fr}.event-editor-page .editor-toolbar{display:flex;flex-wrap:wrap;gap:8px}.event-editor-page .editor-toolbar>*{margin:0;flex:1 1 140px}}

/* Review formula fields: keep help and review reason on their own full rows. */
[data-reviewfields].grid{gap:18px 20px;align-items:end;margin:20px 0}
[data-reviewfields]>label{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0}
[data-reviewfields]>label>input{height:44px;min-width:0;margin:0;box-sizing:border-box}
[data-reviewfields]>p,[data-reviewfields]>.review-reason{grid-column:1/-1}
[data-reviewfields]>p{margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;line-height:1.8;color:var(--muted)}

.editor-toolbar button.danger{background:#792d3c;color:#ffe2e7;border:1px solid #b55369}.editor-toolbar button.danger:hover{background:#94384b}

/* Compact home banner and expandable one-line filter toolbar. */
.home-page .home-hero{padding:24px 28px;min-height:0;gap:20px;margin-bottom:24px}
.home-page .home-hero h1{font-size:34px;line-height:1.3;margin:8px 0 10px}
.home-page .home-hero p{font-size:16px;line-height:1.6;margin:8px 0 14px}
.home-page .home-hero .btn{font-size:15px;padding:9px 13px;margin:0 6px 0 0}
.home-page .hero-ring{max-width:160px;max-height:160px;min-width:0;min-height:0}
.home-page .home-hero .eyebrow{font-size:12px;letter-spacing:1.5px}
.compact-event-filters{margin:12px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:8px}
.compact-filter-bar{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:thin}
.compact-filter-bar button{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;margin:0;padding:8px 11px;font-size:15px;min-height:36px;border-radius:7px}
.compact-filter-bar button span{max-width:160px;overflow:hidden;text-overflow:ellipsis}
.compact-filter-bar button[aria-expanded=true],.compact-filter-bar button.has-filter{background:#284c83;color:#e2edff}
.compact-filter-panel{padding:14px 8px 6px;max-width:620px}
.compact-filter-panel label,.compact-filter-panel .region-field{margin:0;min-width:0}
.compact-filter-panel label{display:flex;flex-direction:column;gap:7px}
.compact-filter-panel input,.compact-filter-panel select{height:42px;margin:0;min-width:0;box-sizing:border-box}
.compact-filter-panel .grid,.compact-filter-panel .region-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.compact-filter-panel .region-controls{margin-top:8px}
.compact-filter-panel small{display:block;margin-top:8px;color:var(--muted)}
.compact-filter-actions{display:flex;gap:8px;padding:8px}
.compact-filter-actions button{width:auto;margin:0;padding:9px 16px;font-size:15px}
.home-page .event-view-toolbar{margin:10px 0}
@media(max-width:600px){.home-page .home-hero{padding:18px 20px;margin:0 0 20px;border-radius:16px}.home-page .home-hero h1{font-size:25px;margin:6px 0 8px}.home-page .home-hero h1 br{display:none}.home-page .home-hero p{font-size:14px;margin:6px 0 12px}.home-page .home-hero p br{display:none}.home-page .home-hero .btn{font-size:14px;padding:8px 11px}.compact-filter-bar button{padding:7px 9px;font-size:14px;min-height:34px}.compact-event-filters{padding:6px}.compact-filter-panel .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compact-filter-panel input[type=date]{width:100%;font-size:14px}.home-page #openEvents>.battle-card-title{gap:8px;margin-bottom:10px}.home-page #openEvents>.battle-card-title h2{font-size:20px;margin:0}.home-page .home-filters button{padding:7px 10px;font-size:14px;margin:0}.home-page #openEvents>.battle-card-title .eyebrow{display:none}}

.home-page .home-filters{display:flex;flex-wrap:wrap;gap:6px}.home-page #openEvents>.battle-card-title{flex-wrap:wrap}.home-page .home-filters button{white-space:nowrap}

.ranking-self{background:#213b5c}.ranking-self .tag{font-size:13px;padding:2px 6px}

/* Full event posters and two compact homepage entry cards. */
.home-page .home-event-cover{aspect-ratio:4/3;background:#0e192b}
.home-page .home-event-cover img{width:100%;height:100%;object-fit:contain;object-position:center}
.home-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 24px}
.home-feature-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:24px;border:1px solid #344e72;border-radius:18px;background:linear-gradient(135deg,#17243c,#203858)}
.home-feature-card.home-feature-ranking{background:linear-gradient(135deg,#252340,#263857);border-color:#4a4775}
.home-feature-card .eyebrow{font-size:12px;letter-spacing:1.4px;color:#95bfff}
.home-feature-card h1,.home-feature-card h2{font-size:29px;line-height:1.4;margin:10px 0;color:#edf4ff}
.home-feature-card p{font-size:15px;line-height:1.7;margin:0 0 16px;color:#b5c8e3}
.home-feature-card .btn{display:inline-flex;align-items:center;gap:18px;margin: auto 0 0;padding:9px 14px;font-size:15px}
.home-feature-ranking .btn{background:#6860c8}
@media(max-width:600px){.home-feature-grid{gap:10px;margin-bottom:20px}.home-feature-card{padding:16px 13px;border-radius:14px}.home-feature-card .eyebrow{font-size:10px;letter-spacing:.7px}.home-feature-card h1,.home-feature-card h2{font-size:calc(clamp(16px,4.1vw,19px) + 2px);line-height:1.45;margin:8px 0}.home-feature-card p{font-size:13px;line-height:1.7;margin-bottom:12px}.home-feature-card .btn{font-size:14px;padding:8px 11px;gap:8px}}
@media(max-width:350px){.home-feature-card{padding:13px 10px}.home-feature-card h1,.home-feature-card h2{font-size:18px}.home-feature-card p br{display:none}}

.ranking-join-prompt{display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:#4566a2;background:linear-gradient(120deg,#1a2c48,#243858)}
.ranking-join-prompt h2{font-size:22px;margin:0 0 8px;line-height:1.5}.ranking-join-prompt p{margin:0;color:var(--muted);font-size:15px;line-height:1.7}.ranking-join-prompt>.btn{flex:0 0 auto;margin:0;white-space:nowrap}
@media(max-width:600px){.ranking-join-prompt{flex-direction:column;align-items:stretch;gap:14px}.ranking-join-prompt h2{font-size:20px}.ranking-join-prompt>.btn{text-align:center}}

.featured-event-toggle{display:inline-flex;align-items:center;gap:8px;margin:0;padding:9px 12px;border:1px solid #425d83;border-radius:8px}.featured-event-toggle input{width:17px;height:17px;margin:0}.home-more-events{text-align:center;margin:20px 0}

.event-quick-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 20px}.event-quick-actions:empty{display:none}.event-quick-actions .btn{margin:0}#registrationSection{scroll-margin-top:150px}#registrationSection:target{outline:2px solid #4c7fea;outline-offset:4px}

.event-editor-page .editor-basics-grid>.editor-live-field{grid-column:1/-1}

/* Mobile posters follow the original ratio and fill the card width. */
@media(max-width:600px){.home-page .home-event-cover:has(img){display:block;aspect-ratio:auto}.home-page .home-event-cover img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}}

/* Supplied artwork for the two homepage entry cards. */
.home-feature-card{background-color:#f4ead7;background-image:linear-gradient(90deg,rgba(255,249,239,.98) 0%,rgba(255,249,239,.80) 42%,rgba(255,249,239,.08) 100%),url('/static/home/events-background.png?v=20261022');background-size:100% 100%,auto 100%;background-repeat:no-repeat;background-position:center,right bottom;border-color:#b9aa88;min-height:230px;box-sizing:border-box}
.home-feature-card.home-feature-ranking{background-color:#f4ead7;background-image:linear-gradient(90deg,rgba(255,249,239,.98) 0%,rgba(255,249,239,.80) 42%,rgba(255,249,239,.08) 100%),url('/static/home/rankings-background.png?v=20261022');background-size:100% 100%,auto 100%;background-repeat:no-repeat;background-position:center,right bottom;border-color:#b9aa88}
.home-feature-card h1,.home-feature-card h2{color:#172d37!important;text-shadow:0 1px 0 rgba(255,255,255,.5)}
.home-feature-card .eyebrow{color:#426269}.home-feature-card p{color:#334f57}.home-feature-card .btn{background:#236773;color:#fff;box-shadow:0 2px 8px rgba(32,55,55,.15)}.home-feature-card .btn:hover{background:#184d58}.home-feature-ranking .btn{background:#795c2c}.home-feature-ranking .btn:hover{background:#60451e}
@media(max-width:600px){.home-feature-card,.home-feature-card.home-feature-ranking{min-height:225px;background-size:100% 100%,auto 100%}.home-feature-card p{max-width:150px}.home-feature-card .btn{margin-top:10px}}

/* Supplied artwork across the shared page header. */
.battle-header{background-color:#f6efdf;background-image:linear-gradient(rgba(255,251,242,.28),rgba(255,251,242,.28)),url('/static/home/header-background.png?v=20261022');background-size:cover;background-position:center bottom;background-repeat:no-repeat;color:#193b44;border-bottom:1px solid #b6aa8d}
.battle-header .battle-brand,.battle-header a{color:#193b44}.battle-header a:hover{color:#0c5966}
.battle-header .battle-login{border-color:#718f92;background:rgba(255,252,243,.6)}
.battle-header .battle-menu-toggle,.battle-header #battleLogout{background:#236773;color:#fff;border:1px solid #236773}
.battle-header .battle-menu-toggle:hover,.battle-header #battleLogout:hover{background:#184d58}

/* Shared site artwork, dimmed to preserve readable light text. */
body{background-color:#0b1c26!important;background-image:linear-gradient(110deg,rgba(8,26,37,.22),rgba(8,26,37,.14)),url('/static/home/site-background.png?v=20261022')!important;background-position:center,center top!important;background-size:cover,cover!important;background-repeat:no-repeat!important;background-attachment:fixed!important}

/* Match the navigation and homepage accents to the supplied teal/gold artwork. */
.battle-sidebar{background:#0d202b;border-right-color:#29404a}
.battle-sidebar small{color:#a9c2c4}.battle-sidebar a{color:#dbe9e9}
.battle-sidebar a.active{background:#23464d;color:#f0d7a3;box-shadow:inset 3px 0 #c6a56b}
.battle-sidebar a:hover{background:#1b3842;color:#fff}
.home-page #openEvents>.battle-card-title{padding:10px 0 14px;border-bottom:1px solid #36505a}
.home-page #openEvents>.battle-card-title .eyebrow{color:#b9c9bf}
.home-page .home-event-card{border-color:#304651}
.home-page .tag{background:#25464e;color:#d5e9e7}
.home-page .home-feature-card{box-shadow:0 8px 24px rgba(0,0,0,.14)}
.home-page .home-feature-card h1,.home-page .home-feature-card h2{color:#173e47!important;text-shadow:none}
.home-page .home-feature-card .eyebrow{color:#55716f}
.home-page .home-footer{color:#b4c5cc}
@media(max-width:600px){body{background-attachment:scroll!important}.home-feature-card,.home-feature-card.home-feature-ranking{min-height:215px}}

/* Let the supplied artwork show through; use dark text on the exposed homepage. */
.home-page #openEvents>.battle-card-title{color:#173e47;border-bottom-color:rgba(23,62,71,.25)}
.home-page #openEvents>.battle-card-title h2{color:#173e47!important}
.home-page #openEvents>.battle-card-title .eyebrow{color:#355b62}
.home-page .home-footer{color:#35515a}
.home-page #eventCards{color:#173e47}
.home-page #eventCards .home-event-card{color:var(--ink)}

/* Shared cream, teal and muted gold palette. */
:root{color-scheme:light;--ink:#193e46;--muted:#526969;--line:#c9c0a9;--blue:#216773;--soft:#e3ebe5;--surface:#f7f2e6;--canvas:#eee9dc}
body{color:var(--ink)}
.card,.panel,.bracket-item,.field-builder-row,.management-tile,.event-tile,.home-event,.compact-event-filters,.event-view-switch,.form-question,.event-box{background:rgba(249,245,234,.95)!important;color:var(--ink);border-color:var(--line);box-shadow:0 4px 16px rgba(40,61,57,.06)}
.battle-sidebar{background:rgba(244,239,224,.96);border-right-color:#c9c0a9}
.battle-sidebar small{color:#5c7371}.battle-sidebar a{color:#254b50}
.battle-sidebar a.active{background:#dce6dc;color:#244f53;box-shadow:inset 3px 0 #b1945a}
.battle-sidebar a:hover{background:#e5e9dc;color:#173e47}
button,a.btn,.btn,.main-btn,.home-feature-ranking .btn{background:#256975;color:#fff;border-color:#256975}
button:hover,a.btn:hover,.btn:hover,.main-btn:hover,.home-feature-ranking .btn:hover{background:#1b535e;color:#fff}
.secondary,.secondary-btn,.gray,button.gray,a.gray,.compact-filter-bar button,.event-view-switch button,.home-filters button{background:#e8e4d6;color:#294f52;border-color:#c8bea4}
.secondary:hover,.secondary-btn:hover,.gray:hover,.compact-filter-bar button:hover,.event-view-switch button:hover,.home-filters button:hover{background:#dce4d9;color:#193e46}
.event-view-switch .is-selected,.home-filters .is-selected,.home-page .home-filters .is-selected{background:#256975;color:#fff;border-color:#256975}
input,select,textarea,.panel .field input,.panel .field textarea{background:#fffaf0!important;color:var(--ink)!important;border-color:#c9c0a9}
input[readonly]{background:#eee9dc!important}
th{background:#e9e5d7;color:#284f54}dialog{background:#f7f2e6!important;color:var(--ink)!important}
.tag,.status-box,.home-page .tag,#permissionLabel,.home-event-region{background:#e0e8dc;color:#28564f;border-color:#c4cfbc}
.home-event-fee,.home-event h3,.home-event h3 a{color:#1e5560!important}
.home-event p,.home-event-meta,.event-introduction,.intro-meta,.event-description-preview{color:#526969}
.home-event-cover,.home-page .home-event-cover,.event-cover,.poster-placeholder{background:#e9e4d6;color:#5a716e;border-color:#c9c0a9}
.event-view-toolbar{color:#365b60}.tile-link{color:#216773}
.winner,.winner-text{color:#23644c}
.notice,.editor-notice{background:#f1e7cd;color:#665225;border-color:#cbb780}
button.danger,.editor-toolbar button.danger{background:#8a4540;color:#fff;border-color:#8a4540}
button.danger:hover,.editor-toolbar button.danger:hover{background:#713630}
a:focus-visible,button:focus-visible{outline-color:#856b32}

/* Fixed columns allow both narrow and wide cells without changing form values. */
.response-sheet table.resizable-sheet{table-layout:fixed;min-width:0;max-width:none}
.response-sheet .resizable-sheet th,.response-sheet .resizable-sheet td{min-width:0!important;max-width:none;overflow:hidden;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}
.response-sheet .resizable-sheet th{position:sticky;padding-right:16px}
.response-sheet .resizable-sheet td input:not([type=checkbox]),.response-sheet .resizable-sheet td select,.response-sheet .resizable-sheet td textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.response-sheet .resizable-sheet td button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.sheet-resize-handle{position:absolute;right:0;top:0;bottom:0;width:12px;cursor:col-resize;touch-action:none;z-index:3;border-right:2px solid transparent}
.sheet-resize-handle:hover,.sheet-resize-handle:focus-visible{border-right-color:#256975;background:rgba(37,105,117,.16);outline:none}
.sheet-resizing,.sheet-resizing *{cursor:col-resize!important;user-select:none!important}
.sheet-width-reset{margin:8px 0}

.response-sheet .sheet-resize-handle{display:flex;align-items:center;justify-content:center;width:16px;color:#50726c;border-right:2px solid #b4c2ad;background:rgba(37,105,117,.06);font-size:20px;line-height:1}.response-sheet .resizable-sheet th{padding-right:20px}

.battle-floating-nav{position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:1000;display:flex;flex-direction:column;gap:8px}
.battle-floating-nav button{margin:0;min-height:44px;padding:10px 14px;border:1px solid #b9b190;border-radius:12px;background:#256975;color:#fff;box-shadow:0 3px 14px rgba(20,52,57,.2);font-size:15px;line-height:1.4;white-space:nowrap}
.battle-floating-nav button:hover{background:#1b535e}.battle-floating-nav button:focus-visible{outline:3px solid #b1945a;outline-offset:3px}
#managerRegistrationSheet{scroll-margin-top:24px}.scroll-buttons{bottom:140px!important}
.battle-workspace{padding-bottom:130px}
@media(max-width:600px){.battle-floating-nav{right:10px;gap:6px}.battle-floating-nav button{font-size:14px;padding:10px 12px}}

/* iPhone Safari zooms focused fields below 16px and may shift the page on blur. */
@media(max-width:600px){input:not([type=checkbox]):not([type=radio]),select,textarea,.panel .field input,.panel .field textarea{font-size:18px!important}}

.participant-info-link{background:transparent!important;color:#216773!important;border:0;padding:0;margin:0;text-align:left;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.participant-info-dialog{width:min(560px,calc(100vw - 28px));max-height:85vh;overflow:auto;padding:24px;border:1px solid #c9c0a9;border-radius:16px;background:#f7f2e6;color:#193e46}
.participant-info-dialog::backdrop{background:rgba(10,30,35,.5)}.participant-info-fields{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px 16px}.participant-info-fields dt{font-weight:600}.participant-info-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}

/* Readable current-member highlight in the cream/teal ranking table. */
#rankingResults tr.ranking-self td{background:#e1eddf;color:#183e35;font-weight:600}
#rankingResults tr.ranking-self td:first-child{box-shadow:inset 3px 0 #9c7b3b}
#rankingResults tr.ranking-self a,#rankingResults tr.ranking-self strong{color:#184f43}
#rankingResults tr.ranking-self .tag{background:#f9f3de;color:#584315;border:1px solid #cdbd91}

.browser-handoff{max-width:720px;margin-top:24px}.browser-handoff input{width:100%;font-size:18px}#inAppLoginNotice a{color:#264e52;text-decoration:underline}

#inAppLoginNotice:not([hidden]),.browser-handoff .notice{display:block}

.ig-browser-notice:not([hidden]){display:block;margin:12px 16px;color:#264e52;background:#f4ecd8;border-color:#c9b785}

/* Registration column filters share the resizable table columns. */
.response-sheet .sheet-filter-row th{padding:6px 8px}
.response-sheet .sheet-column-filter{width:100%;min-width:0;margin:0;padding:8px;font-size:16px}
.response-sheet tr[hidden]{display:none!important}
.sheet-filter-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0;color:var(--ink)}

/* Public member photo and lifetime ranking highlights. */
#memberPublicInfo .member-public-heading{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);align-items:start;gap:24px}
#memberPublicInfo .member-avatar{display:block;width:min(100%,320px);height:auto;aspect-ratio:1;object-fit:contain;border-radius:18px;background:#eee9dc;flex-shrink:0}
.ranking-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ranking-podium-person{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:20px 12px;border:1px solid #c9c0a9;border-radius:16px;background:#eee9dc;color:#234e55;overflow-wrap:anywhere}
.ranking-podium-person img,.podium-avatar-placeholder{width:112px;height:112px;max-width:100%;object-fit:cover;border-radius:50%;background:#f9f5ea}
.podium-avatar-placeholder{display:grid;place-items:center;font-size:44px}
.podium-place-1{border-color:#ae8741;background:#f4ead0}
@media(max-width:600px){#memberPublicInfo .member-public-heading{grid-template-columns:minmax(0,1fr);gap:20px}#memberPublicInfo .member-avatar{width:100%;height:auto}.ranking-podium{gap:8px}.ranking-podium-person{padding:14px 6px;font-size:15px}.ranking-podium-person img,.podium-avatar-placeholder{width:72px;height:72px}}

#memberPublicInfo .member-photo-missing{display:grid;place-items:center;padding:24px;text-align:center;color:#35585b;font-size:18px;border:1px dashed #b4aa90}

/* Manager operation feedback must not push the registration sheet down. */
.battle-hub-manager #notice{position:fixed;left:16px;bottom:18px;z-index:40;width:min(520px,calc(100vw - 180px));max-height:30vh;overflow:auto;margin:0;box-shadow:0 5px 22px #17243b26}

.battle-round-group{margin:18px 0;border:1px solid #b9b39f;border-radius:12px;background:rgba(249,245,234,.95);overflow:hidden}.battle-round-group>summary{padding:16px 18px;font-size:20px;font-weight:700;cursor:pointer;color:#214e56;background:#e6e0cb;border-bottom:1px solid transparent}.battle-round-group[open]>summary{background:#d6e6df;border-bottom-color:#b9b39f}.battle-round-content{padding:8px 16px}.battle-round-group .scroll{padding:8px;overflow:auto}.battle-round-group tr[hidden]{display:none}

.page-scroll-buttons{right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:1000;align-items:stretch;gap:8px}.page-scroll-buttons>button{margin:0;min-height:44px;white-space:nowrap}.page-scroll-buttons .quick-next-round{min-width:118px}

.brawl-signup-expand{margin:20px 0;border:2px solid #b5aa88;border-radius:12px;background:#f7f2e6;overflow:hidden}.brawl-signup-expand>summary{padding:16px;cursor:pointer;background:#e8e3d0;color:#214e56;font-size:18px;min-height:52px}.brawl-signup-expand>summary strong{margin-right:14px}.brawl-signup-expand>summary span{font-size:15px;color:#355e64;border:1px solid #a69c7f;border-radius:20px;padding:4px 10px;white-space:nowrap}.brawl-signup-expand .expand-open{display:none}.brawl-signup-expand[open] .expand-open{display:inline}.brawl-signup-expand[open] .expand-closed{display:none}.brawl-signup-expand[open]>summary{border-bottom:1px solid #b5aa88}.brawl-signup-expand>summary:focus-visible{outline:3px solid #256975;outline-offset:-3px}.brawl-signup-body{padding:16px}

/* Shared disclosure styling, including dynamically rendered registration/history panels. */
details:not(.brawl-signup-expand){border:1px solid #b5aa88;border-radius:12px;background:rgba(249,245,234,.95);margin:16px 0;overflow:hidden}
details:not(.brawl-signup-expand)>summary{padding:15px 16px;min-height:52px;background:#e8e3d0;color:#214e56;font-size:18px;font-weight:600;cursor:pointer;overflow-wrap:anywhere;line-height:1.6}
details:not(.brawl-signup-expand)>summary::after{content:'點此展開';display:inline-block;margin-left:14px;padding:2px 10px;border:1px solid #a69c7f;border-radius:20px;font-size:14px;font-weight:400;color:#355e64;white-space:nowrap}
details:not(.brawl-signup-expand)[open]>summary{background:#d6e6df;border-bottom:1px solid #b5aa88;margin-bottom:12px}
details:not(.brawl-signup-expand)[open]>summary::after{content:'點此收合'}
details:not(.brawl-signup-expand)>summary:focus-visible{outline:3px solid #256975;outline-offset:-3px}
@media(max-width:600px){details:not(.brawl-signup-expand)>summary{font-size:17px;padding:13px 12px}}

#brawlPanel .brawl-flight-card{padding:22px;margin-top:20px} .flight-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.flight-card-heading h3{margin:0;font-size:22px}.flight-card-heading p{margin:6px 0 0;font-size:15px}.flight-card-counts{display:flex;gap:24px;margin:18px 0;color:#5e6f6a;font-size:15px}.flight-card-counts strong{font-size:21px;color:#214e56;margin:0 3px}.flight-card-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 0;border-top:1px solid #d6cdb8;border-bottom:1px solid #d6cdb8}.flight-card-actions button{margin:0}.flight-pairing-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.flight-pairing-actions label{display:flex;align-items:center;gap:8px;white-space:nowrap;margin:0}.flight-pairing-actions input{width:80px;margin:0;padding:9px 10px}.flight-entry-list{margin-top:20px}.flight-entry-list h4{margin:0 0 8px;color:#35585b;font-size:15px}.flight-entry-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e2dbc9}.flight-entry-row:last-child{border-bottom:0}.flight-entry-row button{margin:0;flex-shrink:0}.flight-entry-empty{font-size:15px;margin:12px 0;color:#6b7772}@media(max-width:600px){#brawlPanel .brawl-flight-card{padding:16px}.flight-pairing-actions{margin-left:0;width:100%}.flight-card-actions .flight-delete{margin-left:auto}.flight-card-heading h3{font-size:20px}}

/* VIP_MEMBER_UI_V1 */
.vip-member-badge{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.35rem;border:1.5px solid #a87820;border-radius:9px;padding:.25rem .6rem;background:#fff7df;color:#725012;font-weight:700;line-height:1.6;vertical-align:middle;max-width:100%;box-sizing:border-box}
.vip-member-row>td{background-color:#fffaf0}
.vip-member-row>td:first-child{box-shadow:inset 3px 0 #bb913f}
.vip-fee-note{border:1px solid #b48a33;border-left:4px solid #a87820;border-radius:8px;padding:.7rem .9rem;background:#fff7df;color:#654711;line-height:1.7;overflow-wrap:anywhere}
.participant-info-dialog.vip-member-dialog{border:2px solid #b48a33}
.vip-admin-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.vip-admin-actions select{width:auto;min-width:8rem;margin:0}

@media(max-width:600px){.battle-header nav .pass-studio-desktop-link{display:none}}
body, body input, body select, body textarea, body button, body .btn {
    font-family:"Huninn","jf open 粉圓","PingFang TC","Microsoft JhengHei",system-ui,sans-serif !important;
}

/* goshoot:black-gold:start */
:root{
 color-scheme:dark;--canvas:#10100f;--surface:#1b1916;--ink:#faf3e5;--muted:#d0c3ac;
 --line:#695432;--blue:#f0cf8b;--soft:#2b2317;--gold:#e5bd70;--gold-line:#ab8247;
 --gold-button:linear-gradient(180deg,#ffe6ae,#d3a253);
}
body{color:var(--ink);background:radial-gradient(ellipse at 50% 0%,#23201a,transparent 600px),var(--canvas)!important}
a{color:var(--blue)} a:hover{color:#ffe7b8}
:focus-visible{outline:2px solid #ffdc8c;outline-offset:3px}
.battle-header{
 color:var(--ink);background:#131210;position:relative;isolation:isolate;
 background-image:linear-gradient(158deg,transparent 68%,#9e6c311a 68.15%,transparent 78%),
   radial-gradient(ellipse 78% 62% at 106% 140%,transparent 64%,#a46b3765 65%,#f7d89a 66%,#623c1e 67%,transparent 75%),
   linear-gradient(135deg,#201b14,#10100f 50%,#1b1610);border-bottom:1px solid var(--gold-line)
}
.battle-header .battle-brand,.battle-header nav a{color:var(--ink)}
.battle-header a:hover{color:var(--blue)}
.battle-header .battle-brand .battle-logo{
 background:transparent;border:0;border-radius:0;padding:0;filter:url(#akpi-logo-dark-matte);
}
.battle-header .battle-menu-toggle,.battle-header #battleLogout,.battle-header .battle-login,
.battle-floating-nav button,.page-scroll-buttons>button{
 background:linear-gradient(#231d14,#12110f);color:#f9e4b5;border:1px solid var(--gold-line);
 box-shadow:inset 0 0 0 1px #e6bc7033,0 3px 10px #0005
}
.battle-header .battle-menu-toggle:hover,.battle-header #battleLogout:hover,.battle-header .battle-login:hover,
.battle-floating-nav button:hover,.page-scroll-buttons>button:hover{background:#3b2d1c;color:#fff0cd}
.battle-sidebar{background:#15130f;border-color:var(--line)}
.battle-sidebar small,.battle-sidebar a{color:var(--muted)}
.battle-sidebar a.active,.battle-sidebar a:hover{background:#33291c;color:#ffe3a6;box-shadow:inset 3px 0 var(--gold)}
.card,.panel,.bracket-item,.field-builder-row,.management-tile,.event-tile,.home-event,.compact-event-filters,
.event-view-switch,.form-question,.event-box,.pass-panel,.pass-card,.ranking-podium-person{
 background:linear-gradient(140deg,#211e19,#161512 80%)!important;color:var(--ink);border-color:var(--line);box-shadow:0 4px 18px #0003
}
.home-event-cover,.home-page .home-event-cover,.event-cover,.poster-placeholder,
#memberPublicInfo .member-avatar,.podium-avatar-placeholder{background:#211c15;color:var(--muted);border-color:var(--line)}
button,a.btn,.btn,.main-btn,.home-feature-ranking .btn,
.event-view-switch .is-selected,.home-filters .is-selected,.home-page .home-filters .is-selected{
 background:var(--gold-button);color:#241609;border-color:#d9ad64;font-weight:650
}
button:hover,a.btn:hover,.btn:hover,.main-btn:hover,.home-feature-ranking .btn:hover{
 background:linear-gradient(#ffedc8,#e6b975);color:#241609
}
.secondary,.secondary-btn,.gray,button.gray,a.gray,a.btn.secondary,.compact-filter-bar button,
.event-view-switch button:not(.is-selected),.home-filters button:not(.is-selected){
 background:#251f17;color:#f5dbab;border-color:var(--gold-line)
}
.secondary:hover,.secondary-btn:hover,.gray:hover,a.btn.secondary:hover,.compact-filter-bar button:hover,
.event-view-switch button:not(.is-selected):hover,.home-filters button:not(.is-selected):hover{background:#3b2e1c;color:#fff0cd}
button:disabled{opacity:.55;cursor:not-allowed}
button.danger,.editor-toolbar button.danger{background:#75342d;color:#fff0e8;border-color:#b86760}
button.danger:hover,.editor-toolbar button.danger:hover{background:#913e35;color:white}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,
.panel .field input,.panel .field textarea{background:#14130f!important;color:var(--ink)!important;border-color:var(--line)}
input[readonly]{background:#282218!important}
input::placeholder,textarea::placeholder{color:#bcb098}
input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--gold)}
table td{border-color:#57482e} th,.response-sheet .sheet-filters th{background:#312719;color:#ffe2a7;border-color:var(--line)}
dialog,.participant-info-dialog{background:#211c15!important;color:var(--ink)!important;border-color:var(--gold-line)}
.notice,.editor-notice,.ig-browser-notice:not([hidden]){background:#332814;color:#ffe0a5;border-color:#a9813b}
.tag,.status-box,.home-page .tag,#permissionLabel,.home-event-region,#rankingResults tr.ranking-self .tag{
 background:#302517;color:#f9dba2;border:1px solid var(--line)
}
#rankingResults tr.ranking-self td{background:#332b1b;color:#ffedc4}
.home-event-fee,.home-event h3,.home-event h3 a,.home-page #openEvents>.battle-card-title h2,.participant-info-link{
 color:var(--blue)!important
}
.participant-info-link:hover{color:#ffe8b6!important}
.home-event p,.home-event-meta,.event-introduction,.intro-meta,.event-description-preview,.event-view-toolbar,
.home-page .home-footer,.home-page #eventCards,.empty,.muted,.sub,label,legend{color:var(--muted)}
.tile-link{color:var(--blue)} .winner,.winner-text{color:#a1e4b6}
.battle-round-group,.brawl-signup-expand,details:not(.brawl-signup-expand){background:#1b1813;border-color:var(--line)}
.brawl-signup-expand>summary,details:not(.brawl-signup-expand)>summary,
details:not(.brawl-signup-expand)[open]>summary{background:#2b2317;color:#f6dfb2;border-color:var(--line)}
details:not(.brawl-signup-expand)>summary::after{color:#e8cc9a;border-color:var(--line)}
.battle-auth .onboarding-privacy{background:#332814;border-color:var(--gold-line);color:#f6dfb2}
.battle-auth .onboarding-privacy a,.battle-auth .onboarding-consent strong{color:#ffe2a7}
.home-page .home-feature-card,.home-page .home-feature-card.home-feature-ranking{
 --feature-art:url('/static/home/events-background.png?v=20261022');
 --feature-glow-x:72%;
 position:relative;isolation:isolate;overflow:hidden;min-height:330px;
 background:radial-gradient(ellipse at var(--feature-glow-x) 83%,#332011 0%,#151109 45%,#0d0d0d 76%);
 border:1px solid #be9558;
 box-shadow:inset 0 0 0 1px #e5bb702e,0 10px 24px #0006
}
.home-page .home-feature-card.home-feature-ranking{
 --feature-art:url('/static/home/rankings-background.png?v=20261022');
 --feature-glow-x:77%;
}
.home-page .home-feature-card::before{
 content:"";position:absolute;z-index:-2;inset:0;pointer-events:none;
 background:var(--feature-art) no-repeat right 82% / auto 105%;
 filter:brightness(.47) contrast(1.25) saturate(1.3) sepia(.16);
 -webkit-mask-image:radial-gradient(ellipse 82% 44% at var(--feature-glow-x) 77%,#000 18%,#000c 49%,transparent 100%);
 mask-image:radial-gradient(ellipse 82% 44% at var(--feature-glow-x) 77%,#000 18%,#000c 49%,transparent 100%)
}
.home-page .home-feature-card::after{
 content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:
 linear-gradient(180deg,#0d0c0b 0%,#100e0cfa 34%,#100e0ca6 54%,transparent 69%,#0d0c0b36 82%,#0d0c0bd1 100%),
 radial-gradient(ellipse 67% 12% at var(--feature-glow-x) 83%,transparent 51%,#b4793838 63%,transparent 73%),
 linear-gradient(131deg,transparent 74%,#e1af5c25 74.35%,transparent 75.2%)
}
.home-page .home-feature-card h1,.home-page .home-feature-card h2{color:#fff7e7!important;text-shadow:0 2px 7px #000}
.home-page .home-feature-card .eyebrow,.home-page #openEvents .eyebrow{color:#efcf93}
.home-page .home-feature-card p{color:#f9e4bc;text-shadow:0 1px 4px #000,0 1px 6px #000}
.home-page .home-feature-card .btn{background:var(--gold-button);color:#241609;border:1px solid #ebc781;box-shadow:0 3px 12px #0007;margin-top:auto}
.home-page #openEvents>.battle-card-title{border-bottom:1px solid var(--line);padding-bottom:.65rem}
@media(max-width:600px){
 .home-page .home-feature-card,.home-page .home-feature-card.home-feature-ranking{min-height:270px}
 .home-page .home-feature-card::before{background-size:auto 97%;background-position:right bottom}
 .home-page .home-feature-card .btn{min-height:42px}
}
@media(max-width:360px){
 .battle-header .battle-brand .battle-logo{width:88px;height:34px}
 .home-page .home-feature-card .btn{padding-inline:8px;gap:5px}
}
.battle-auth #socialLoginButtons{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.625rem
}
.battle-auth #socialLoginButtons button{
 width:100%;min-width:0;min-height:48px;margin:0;padding:.55rem .65rem;
 color:#f9e9cb;background:linear-gradient(#292218,#1b1711);
 border:1px solid #9f7944;border-radius:10px;line-height:1.3;white-space:normal;
}
.battle-auth #socialLoginButtons .social-line:not(:disabled){background:linear-gradient(#105337,#123125);border-color:#579977;color:#f2fcf6}
.battle-auth #socialLoginButtons .social-google:not(:disabled){background:linear-gradient(#263d66,#1a2c4b);border-color:#7794c5;color:#f7f9ff}
.battle-auth #socialLoginButtons button:not(:disabled):hover{filter:brightness(1.15)}
.battle-auth #socialLoginButtons button:disabled{
 background:#211e19;border-color:#655538;color:#d4c5a8;opacity:1;
}
.battle-auth #socialLoginButtons .social-unavailable{display:block;margin-top:.2rem;font-size:.8em;color:#c7b894}
.battle-auth #accountLoginToggle{
 width:100%;min-height:48px;border:1px solid #f0cf90;border-radius:10px;
 color:#241609;background:var(--gold-button);box-shadow:0 3px 12px #0005
}
.battle-auth #accountLoginToggle[aria-expanded=true]{background:#2c2215;color:#f8dfa9;border-color:var(--gold-line)}
@media(max-width:350px){.battle-auth #socialLoginButtons{grid-template-columns:1fr}}
/* goshoot:black-gold:end */
