/* Phoenix mobile web-app enhancement. Brand palette + original Poppins/Montserrat/Buchery retained. */
:root{--phx-purple:#b026ff;--phx-dark:#0a0510;--phx-panel:#150a21;--phx-surface:#1a0e28;--phx-border:rgba(255,255,255,.11);--phx-muted:#b7a9c8}
html{scroll-behavior:smooth} body.phoenix-webapp{min-width:0} .phoenix-topbar{z-index:100!important}
.phoenix-bottom-nav{display:none}
.phx-page{min-height:100vh;padding:136px 22px 105px;background:radial-gradient(ellipse at 85% 5%,rgba(176,38,255,.10),transparent 45%),var(--phx-dark);font-family:Poppins,sans-serif}
.phx-wrap{max-width:1170px;margin:auto}.phx-narrow{max-width:810px}
.phx-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 30px}
.phx-page-heading h1{font-family:Montserrat,sans-serif;font-size:clamp(27px,3.2vw,42px);font-weight:900;line-height:1.2;color:#fff;letter-spacing:-.04em;margin:8px 0 10px;overflow-wrap:anywhere}
.phx-page-heading h1 span{color:var(--phx-purple)}.phx-page-heading p{color:var(--phx-muted);font-size:14px}
.phx-eyebrow{font-weight:800;color:var(--phx-purple);font-family:Montserrat,sans-serif;font-size:11px;letter-spacing:.17em;text-transform:uppercase}
.phx-panel{background:linear-gradient(160deg,rgba(31,16,48,.95),rgba(15,6,25,.97));border:1px solid var(--phx-border);box-shadow:0 14px 36px rgba(0,0,0,.2);border-radius:24px;padding:24px;min-width:0;margin-bottom:20px}
.phx-panel h2{font-family:Montserrat,sans-serif;color:white;font-weight:800;font-size:19px;line-height:1.3}
.phx-panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}
.phx-panel-head h2 i{color:var(--phx-purple);margin-right:8px}
.phx-grid{display:grid;gap:18px;min-width:0}.phx-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.phx-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.phx-grid-archers{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.phx-button{border:1px solid transparent;border-radius:13px;padding:12px 17px;display:inline-flex;justify-content:center;align-items:center;gap:9px;background:var(--phx-purple);font-size:13px;font-weight:800;color:#fff;text-align:center;cursor:pointer;transition:transform .15s,border-color .15s,background-color .15s;min-height:44px;white-space:normal}
.phx-button:hover{background:#9327dc;transform:translateY(-1px)}.phx-button-outline{background:rgba(176,38,255,.08);border-color:rgba(176,38,255,.35);color:#fff}.phx-button-outline:hover{background:rgba(176,38,255,.22)}.phx-button-full{width:100%}
.phx-actions{display:flex;gap:10px;flex-wrap:wrap}.phx-top-actions{margin-bottom:18px}
.phx-icon-square{width:44px;height:44px;border-radius:13px;background:rgba(176,38,255,.15);border:1px solid rgba(176,38,255,.25);color:var(--phx-purple);display:grid;place-items:center;font-size:20px}
.phx-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.phx-tourney-card h2{font-size:21px;margin-bottom:14px}.phx-chip{background:rgba(255,255,255,.09);border:1px solid var(--phx-border);border-radius:99px;color:#e3d8eb;font-size:11px;font-weight:700;padding:7px 11px;white-space:nowrap}.phx-chip-live{border-color:rgba(176,38,255,.4);color:#edbcff;background:rgba(176,38,255,.15)}
.phx-meta{display:flex;flex-wrap:wrap;gap:13px;font-size:13px;color:var(--phx-muted)}.phx-meta i{color:var(--phx-purple);margin-right:5px}
.phx-stats-mini{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.phx-stats-mini>span{padding:7px 10px;border-radius:8px;background:rgba(255,255,255,.05);font-size:11px;color:#d2c7dc}
.phx-stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 22px}.phx-stat{background:rgba(176,38,255,.09);border:1px solid rgba(176,38,255,.21);border-radius:18px;padding:17px 20px;display:flex;flex-direction:column}.phx-stat strong{font:900 29px Montserrat,sans-serif;color:#fff}.phx-stat span{font-size:12px;color:var(--phx-muted)}
.phx-back{display:inline-flex;gap:9px;align-items:center;color:var(--phx-muted);font-weight:700;font-size:12px;margin-bottom:22px}.phx-back:hover,.phx-text-link:hover{color:#fff}.phx-text-link{color:#d2a2f3;font-weight:700;font-size:12px;border:0;background:none;cursor:pointer}
.phx-form .phx-field{margin-bottom:15px}.phx-field label{display:block;color:#dcd0e7;font-size:12px;font-weight:700;margin-bottom:7px}
.phx-field input,.phx-field select,.phx-field textarea{display:block;background:#120920;color:#fff;border:1px solid rgba(255,255,255,.14);width:100%;min-height:45px;border-radius:11px;padding:11px 13px;outline:none;font:500 14px Poppins,sans-serif;box-sizing:border-box;min-width:0;color-scheme:dark}
.phx-field input:focus,.phx-field select:focus{border-color:var(--phx-purple);box-shadow:0 0 0 3px rgba(176,38,255,.13)}.phx-field input::placeholder{color:#8a789d}
.phx-section-title{font:800 14px Montserrat,sans-serif;color:white;margin:20px 0 16px}.phx-section-title i{color:var(--phx-purple)}
.phx-hint{font-size:11px;color:#a998b9;line-height:1.8;margin:8px 0 12px}.phx-muted{font-size:13px;color:var(--phx-muted);line-height:1.65}.phx-small{font-size:11px}.phx-large-icon{font-size:36px;color:var(--phx-purple);margin-bottom:15px}
.phx-empty{text-align:center;padding:55px 22px}.phx-empty p{color:var(--phx-muted);margin:10px auto 20px;max-width:450px}
.phx-alert{border:1px solid rgba(176,38,255,.3);background:rgba(176,38,255,.09);border-radius:13px;padding:13px 18px;margin-bottom:19px;font-size:13px}.phx-alert-success{border-color:rgba(88,220,150,.35);background:rgba(88,220,150,.09);color:#b0fbd6}.phx-alert-error{border-color:rgba(255,120,142,.35);background:rgba(255,120,142,.08);color:#ffc9d3}
.phx-leader-row{display:flex;align-items:center;gap:15px;border-top:1px solid var(--phx-border);padding:13px 2px}.phx-rank{flex:none;border-radius:12px;background:#291436;color:#cdaddf;font-weight:900;text-align:center;width:37px;height:37px;display:grid;place-items:center}.phx-first{background:rgba(176,38,255,.2);color:white}.phx-leader-name{flex:1;min-width:0}.phx-leader-name strong{display:block;color:white;font-size:13px;overflow-wrap:anywhere}.phx-leader-name small{font-size:11px;color:var(--phx-muted)}.phx-leader-numbers{text-align:right}.phx-leader-numbers strong{display:block;font:900 20px Montserrat,sans-serif;color:white}.phx-leader-numbers small{font-size:10px;color:var(--phx-muted)}
.phx-archer-card{border:1px solid var(--phx-border);background:rgba(0,0,0,.16);border-radius:17px;padding:16px;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;min-width:0}.phx-archer-card strong{display:block;color:#fff;font-size:13px;overflow-wrap:anywhere}.phx-archer-total{font:900 24px Montserrat,sans-serif;color:white}.phx-archer-total span{font-size:11px;color:var(--phx-muted)}.phx-qr{width:100%;max-width:150px;background:#fff;border-radius:11px;padding:6px;aspect-ratio:1;overflow:hidden}.phx-qr svg{display:block;width:100%;height:100%}.phx-archer-card .phx-actions{width:100%;justify-content:center}.phx-archer-card .phx-button{font-size:11px;padding:9px 10px;min-height:38px}
.phx-arrow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.phx-score-total{display:flex;align-items:center;justify-content:space-between;margin:10px 0 22px;padding:13px 19px;background:rgba(176,38,255,.12);border:1px solid rgba(176,38,255,.32);border-radius:14px;color:#ddd}.phx-score-total strong{font:900 35px Montserrat,sans-serif;color:#fff}
.phx-history-row{display:flex;justify-content:space-between;gap:8px;padding:14px 0;border-bottom:1px solid var(--phx-border)}.phx-history-row strong{font-size:13px;color:white;display:block}.phx-history-row small{font-size:11px;color:var(--phx-muted);display:block;margin-top:3px}.phx-history-row>div:last-child{text-align:right;flex:none}
/* Dashboard & other existing MVC pages on small screens: refresh layout, keep original palette. */
@media(max-width:1050px){.phx-grid-archers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
  .phoenix-topbar{position:fixed!important;top:0;left:0;height:75px;padding:12px 16px!important;background:rgba(10,5,16,.94)!important;backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,255,255,.08)}
  .phoenix-topbar .max-w-7xl{height:100%}.phoenix-topbar .w-12.h-12{height:43px;width:43px}.phoenix-topbar h1{font-size:16px}
  .phoenix-topbar #mobile-menu{top:75px;max-height:calc(100vh - 160px);overflow-y:auto;padding:19px 22px 26px;box-shadow:0 18px 35px rgba(0,0,0,.4)}
  .phoenix-bottom-nav{display:flex;position:fixed;z-index:101;bottom:0;left:0;right:0;justify-content:space-around;gap:3px;background:rgba(18,9,29,.96);border-top:1px solid rgba(176,38,255,.25);backdrop-filter:blur(22px);padding:10px 8px calc(8px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 28px rgba(0,0,0,.35)}
  .phoenix-bottom-nav a{flex:1;min-width:0;color:#bcafcd;text-align:center;display:flex;flex-direction:column;gap:4px;align-items:center;font-size:10px;font-weight:700;padding:5px 2px;line-height:1.35}
  .phoenix-bottom-nav a i{font-size:19px}.phoenix-bottom-nav a.active{color:#d77cfe}.phoenix-bottom-nav a.active i{filter:drop-shadow(0 0 6px rgba(176,38,255,.4))}
  body.phoenix-webapp > footer{display:none}
  .phx-page{padding:102px 14px calc(105px + env(safe-area-inset-bottom,0px))}.phx-page-heading{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:21px}.phx-page-heading h1{font-size:27px;margin:6px 0}.phx-page-heading p{font-size:12px}.phx-panel{padding:19px;border-radius:19px;margin-bottom:15px}
  .phx-grid-two,.phx-grid-three{grid-template-columns:1fr}.phx-grid-archers{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.phx-stats-row{gap:7px}.phx-stat{padding:12px 9px;border-radius:12px}.phx-stat strong{font-size:24px}.phx-stat span{font-size:10px}.phx-tourney-card h2{font-size:19px}.phx-actions>.phx-button{flex:1}
  .phx-form .phx-grid-two,.phx-form .phx-grid-three{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.phx-form .phx-field{min-width:0}.phx-archer-card .phx-actions{gap:6px}.phx-archer-card .phx-button{font-size:10px;min-height:35px;padding:6px 7px}.phx-qr{max-width:125px}.phx-leader-row{gap:9px}
  main[class*="pt-32"]{padding:100px 14px 105px!important}main[class*="pt-32"] [class~="p-8"],main[class*="pt-32"] [class~="lg:p-12"]{padding:19px!important}main[class*="pt-32"] h2[class*="text-3xl"]{font-size:25px!important;line-height:1.23}
  main[class*="pt-32"] table{font-size:12px}main[class*="pt-32"] table th,main[class*="pt-32"] table td{padding:10px!important}
  main[class*="pt-32"] .flex.justify-between.items-center.mb-8{flex-wrap:wrap;gap:12px}
}
@media(max-width:380px){.phx-grid-archers{grid-template-columns:1fr}.phx-archer-card{flex-direction:row;align-items:center;text-align:left;flex-wrap:wrap}.phx-archer-card .phx-qr{width:100px;flex:none;margin-left:auto}.phx-archer-card .phx-actions{width:100%}.phx-form .phx-grid-three{grid-template-columns:1fr}}
/* Dashboard system cards */
.phx-dash-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;background:radial-gradient(circle at 80% 40%,rgba(176,38,255,.33),transparent 44%),linear-gradient(110deg,#21102f,#0f0618);border:1px solid rgba(176,38,255,.30);border-radius:26px;padding:35px 38px;margin-bottom:29px;min-height:205px}
.phx-dash-hero-copy{position:relative;z-index:1}.phx-dash-hero h1{font:900 clamp(27px,3vw,39px) Montserrat,sans-serif;color:white;letter-spacing:-.04em;margin:9px 0}.phx-dash-hero h1 span{color:#d17cfa}.phx-dash-hero p{font-size:13px;color:#c2b1d2}.phx-dash-hero-mark{font-size:120px;color:rgba(176,38,255,.27);transform:rotate(-15deg);margin-right:25px}.phx-dash-tags{display:flex;gap:9px;flex-wrap:wrap;margin-top:25px}.phx-dash-tags span{font-size:11px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);padding:7px 11px;border-radius:99px;color:#e8dbee}.phx-dash-tags i{color:var(--phx-purple);margin-right:5px}
.phx-dash-section{margin-bottom:31px}.phx-quick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.phx-quick-tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;padding:18px;background:rgba(28,14,43,.75);border:1px solid var(--phx-border);border-radius:19px;transition:transform .15s,border-color .15s}.phx-quick-tile:hover,.phx-manage-tile:hover{border-color:rgba(176,38,255,.55);transform:translateY(-2px)}.phx-quick-icon{height:44px;width:44px;background:rgba(176,38,255,.15);border-radius:14px;display:grid;place-items:center;color:#ce75fd;font-size:19px;flex:none}.phx-quick-tile strong{font-size:12px;color:white;overflow-wrap:anywhere}.phx-quick-tile small{font-size:10px;color:#aa99bd;line-height:1.5}
.phx-manage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.phx-manage-tile{display:flex;align-items:center;gap:15px;background:rgba(27,12,43,.8);border:1px solid var(--phx-border);border-radius:17px;padding:17px;transition:.15s;min-width:0}.phx-manage-tile>i:first-child{color:#d27dff;background:rgba(176,38,255,.13);height:43px;width:43px;display:grid;place-items:center;border-radius:12px;flex:none}.phx-manage-tile>i:last-child{font-size:11px;color:#806b92;margin-left:auto}.phx-manage-tile span{min-width:0}.phx-manage-tile strong{display:block;color:white;font-size:13px}.phx-manage-tile small{display:block;color:#b7a6c4;font-size:10px;line-height:1.7;margin-top:2px}.phx-mini-event{display:flex;gap:13px;align-items:center;margin:0}.phx-mini-event strong{font-size:13px;color:#fff;display:block}.phx-mini-event small{display:block;font-size:11px;color:var(--phx-muted);margin-top:4px}.phx-mini-event>i:last-child{margin-left:auto;color:var(--phx-purple)}.phx-dash-signout{text-align:right;margin:30px 0;color:#cfbbc8;font-size:12px}.phx-dash-signout i{margin-right:7px}
@media(max-width:1050px){.phx-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.phx-dash-hero{padding:23px 22px;border-radius:21px;min-height:185px;margin-bottom:22px}.phx-dash-hero h1{font-size:27px;max-width:230px;overflow-wrap:anywhere}.phx-dash-hero-mark{position:absolute;right:-33px;bottom:10px;font-size:88px;margin:0}.phx-dash-tags{margin-top:16px}.phx-dash-section{margin-bottom:25px}.phx-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.phx-quick-tile{padding:13px 9px;border-radius:15px;align-items:center;text-align:center;gap:7px}.phx-quick-icon{width:42px;height:42px;border-radius:12px}.phx-quick-tile strong{font-size:11px}.phx-quick-tile small{font-size:9px}.phx-manage-grid{grid-template-columns:1fr;gap:9px}.phx-manage-tile{padding:12px 14px;border-radius:14px}.phx-panel-head{margin-bottom:12px}.phx-panel-head h2{font-size:17px}.phx-panel-head .phx-muted{font-size:10px}}
.phx-payment-preview{display:flex;gap:15px;align-items:center;padding:15px;border-radius:16px;background:rgba(255,255,255,.04);margin-bottom:18px}.phx-payment-preview img{width:112px;height:112px;object-fit:contain;background:#fff;padding:6px;border-radius:10px}.phx-payment-preview strong{color:#fff;font-size:13px}
/* Phoenix home — redesigned layout, existing original imagery + fonts + brand colors. */
.phx-home{min-height:100vh;background:#0a0510;color:#fff;padding-bottom:60px}.phx-home-hero{position:relative;min-height:660px;overflow:hidden}.phx-home-hero-image{position:absolute;inset:0;background:url('/assets/images/hero-desktop.webp') center center/cover no-repeat}.phx-home-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,5,16,.9) 0%,rgba(10,5,16,.52) 50%,rgba(10,5,16,.32) 100%),linear-gradient(0deg,#0a0510 0%,transparent 35%)}.phx-home-hero-inner{position:relative;z-index:1;min-height:660px;display:flex;align-items:center;padding:170px 22px 105px}.phx-home-copy{max-width:850px}.phx-home-copy h1{font:italic 900 clamp(56px,10vw,135px)/1 Montserrat,sans-serif;letter-spacing:-.09em;color:#fff;text-shadow:0 3px 30px rgba(0,0,0,.5);margin:14px 0 0}.phx-home-brush{font:normal clamp(42px,7.8vw,105px)/.95 BucheryRegular,cursive;color:#b026ff;transform:rotate(-3deg);transform-origin:left center;text-shadow:0 0 20px rgba(176,38,255,.28);margin:0 0 17px}.phx-home-sub{font:700 20px Montserrat,sans-serif;letter-spacing:.4em;color:#ddd2e6}.phx-home-tagline{color:#d4c2dc;letter-spacing:.14em;font-size:12px;font-weight:700;margin:26px 0}.phx-home-tagline span{color:#b026ff;margin:0 6px}.phx-home-cta{margin-top:20px}
.phx-home-body{position:relative;margin-top:-25px;padding:0 22px}.phx-home-section{margin:30px 0 48px}.phx-home-section .phx-panel-head h2{font-size:clamp(21px,2.5vw,29px);margin-top:6px}.phx-home-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.phx-home-menu-card{display:flex;flex-direction:column;min-height:170px;border:1px solid rgba(176,38,255,.23);border-radius:22px;background:linear-gradient(135deg,#241037,#13091f);padding:23px;gap:9px;transition:.15s}.phx-home-menu-card:hover{border-color:#b026ff;transform:translateY(-2px)}.phx-home-menu-card i{font-size:26px;color:#b026ff;margin-bottom:13px}.phx-home-menu-card strong{font:800 16px Montserrat,sans-serif;color:white}.phx-home-menu-card small{color:#afa0be;font-size:12px}.phx-home-event-feature{display:flex;align-items:center;gap:16px;padding:24px;border:1px solid rgba(176,38,255,.27);border-radius:22px;background:linear-gradient(125deg,rgba(176,38,255,.18),rgba(18,8,28,.95));min-width:0}.phx-home-event-feature .phx-home-event-icon{flex:none;width:57px;height:57px;border-radius:18px;background:rgba(176,38,255,.19);color:#df92ff;display:grid;place-items:center;font-size:26px}.phx-home-event-feature>div:nth-child(2){flex:1;min-width:0}.phx-home-event-feature strong{font:800 16px Montserrat,sans-serif;color:white;display:block}.phx-home-event-feature small{color:#bbaac9;font-size:12px;display:block;margin-top:8px}.phx-home-event-feature>i:last-child{color:#b026ff}.phx-home-photo-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:13px}.phx-home-photo-grid a{border-radius:18px;overflow:hidden;aspect-ratio:1.35;background:#1a0e28}.phx-home-photo-grid img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.phx-home-photo-grid a:hover img{transform:scale(1.04)}.phx-home-join{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 37px;margin-top:55px;border-radius:24px;background:radial-gradient(circle at 80% 0,rgba(176,38,255,.26),transparent 48%),#1b0e2a;border:1px solid rgba(176,38,255,.31)}.phx-home-join h2{font:900 27px Montserrat,sans-serif;margin:10px 0}.phx-home-join h2 span{color:#cc6fff}.phx-home-join p{color:#b6a2c2;font-size:13px}
@media(max-width:767px){.phx-home{padding-bottom:105px}.phx-home-hero{min-height:620px}.phx-home-hero-image{background-image:url('/assets/images/hero-mobile.webp');background-position:center center}.phx-home-hero-shade{background:linear-gradient(90deg,rgba(10,5,16,.82),rgba(10,5,16,.25)),linear-gradient(0deg,#0a0510 0%,transparent 65%)}.phx-home-hero-inner{min-height:620px;align-items:flex-end;padding:105px 18px 118px}.phx-home-copy h1{font-size:clamp(46px,15vw,75px);letter-spacing:-.08em;margin:12px 0 4px}.phx-home-brush{font-size:clamp(39px,11vw,64px);margin-bottom:14px}.phx-home-sub{font-size:13px;letter-spacing:.28em}.phx-home-tagline{font-size:10px;line-height:1.8;letter-spacing:.05em;margin:17px 0}.phx-home-cta .phx-button{font-size:11px;padding:10px 9px}.phx-home-body{padding:0 14px;margin-top:-45px}.phx-home-menu{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.phx-home-menu-card{padding:13px 5px 12px;min-height:100px;align-items:center;text-align:center;border-radius:15px;gap:6px}.phx-home-menu-card i{font-size:22px;margin-bottom:5px}.phx-home-menu-card strong{font-size:10px}.phx-home-menu-card small{font-size:9px}.phx-home-section{margin:20px 0 35px}.phx-home-event-feature{border-radius:17px;padding:16px;gap:11px}.phx-home-event-feature .phx-home-event-icon{width:45px;height:45px;font-size:19px;border-radius:13px}.phx-home-event-feature strong{font-size:13px}.phx-home-event-feature small{font-size:10px}.phx-home-photo-grid{gap:7px;grid-template-columns:1.3fr 1fr 1fr}.phx-home-photo-grid a{border-radius:11px;aspect-ratio:1}.phx-home-join{flex-direction:column;align-items:flex-start;margin-top:35px;padding:24px 21px;border-radius:20px}.phx-home-join h2{font-size:23px}.phx-home-join .phx-button{width:100%}}
