:root{--bg:#0c0f14;--fg:#e6ecf2;--muted:#a9b4c0;--accent:#8ec5ff;--accent2:#ffd28e}
/* Uma Musume palette accents */
:root{--uma-yellow:#ffd166;--uma-orange:#ff9f1c;--uma-pink:#ff9bd2;--uma-pink-dark:#ff4fb1;--uma-purple:#7e5bef;--glass:#0f141bcc}

*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Calibri,Arial,sans-serif;background:var(--bg);color:var(--fg)}
img{max-width:100%;height:auto}
.page-wrapper{min-height:100%;display:flex;flex-direction:column}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline;color:var(--uma-pink)}
a:focus{outline:none;box-shadow:0 0 0 2px #ff9bd244;border-radius:4px}

/* Header */
header{padding:16px 20px;background:linear-gradient(180deg,#0f141b,#0e1320);position:sticky;top:0;z-index:5;border-bottom:0;box-shadow:0 6px 20px #00000066;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
header h1{margin:0;font-size:clamp(24px,3.2vw,36px);line-height:1}
header:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:linear-gradient(90deg,var(--uma-yellow),var(--uma-orange),var(--uma-pink),var(--uma-purple));opacity:.9}
header h1 a{background:linear-gradient(45deg,var(--uma-yellow),var(--uma-pink));-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:900;letter-spacing:.6px;text-shadow:0 2px 18px #ff9bd244,0 0 8px #ffd16655}
header nav{display:flex;gap:12px;align-items:center;font-size:16px;flex-wrap:wrap}
header nav a{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 14px;border-radius:999px;font-weight:800;color:#0b0e14;background:linear-gradient(135deg,var(--uma-yellow),var(--uma-pink));box-shadow:0 8px 20px #ff9f1c33;border:0}
header nav a:hover{text-decoration:none;filter:brightness(1.06)}

/* Layout */
.container{max-width:1200px;margin:24px auto;padding:0 16px;flex:1 0 auto}
body.uma-detail .container{max-width:100%;margin:16px 0;padding:0}
body.admin-edit .container{max-width:1400px}
body.admin-edit .card{padding:20px}
.search-bar{display:grid;grid-template-columns:1fr 220px auto auto;gap:12px;align-items:stretch;margin-bottom:16px}
.search-bar input[type="text"]{min-width:0;font-size:16px;padding:14px 16px;height:48px}
.search-bar select{font-size:16px;padding:14px 16px;height:48px}
.search-bar button{font-size:16px;padding:0 18px;height:48px}
.search-bar .cta{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 16px}
@media (max-width: 800px){
  .search-bar{grid-template-columns:1fr}
  .search-bar button,.search-bar .cta{width:100%}
}
input,select,button{padding:10px 12px;border-radius:10px;border:1px solid #2a3546;background:#0f141b;color:var(--fg);transition:border-color .15s ease, box-shadow .15s ease}
input:focus,select:focus,button:focus{outline:none;border-color:var(--uma-pink);box-shadow:0 0 0 3px #ff9bd233}
.card{background:#0f141b;border:1px solid #1b2330;border-radius:14px;padding:16px;margin:12px 0;position:relative;box-shadow:0 10px 30px #00000033}
.card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;border-top-left-radius:14px;border-top-right-radius:14px;background:linear-gradient(90deg,var(--uma-yellow),var(--uma-orange),var(--uma-pink),var(--uma-purple));opacity:.85}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;background:linear-gradient(135deg,#1b2330,#2a3550);border:1px solid #2a3550;color:#e7f1ff;font-size:12px;margin-left:6px;box-shadow:0 2px 8px #00000055}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px;border-bottom:1px solid #1b2330;text-align:left}
.table thead th{background:linear-gradient(180deg,#141b28,#101522);color:#e8f2ff}
.table tbody tr:nth-child(even){background:#0f141f}
.table tbody tr:hover{background:#131a26}
.footer{padding:48px 20px 20px;color:var(--muted);border-top:1px solid #1b2330;margin-top:24px;background:linear-gradient(180deg,#0b0e14,#0e1220);position:relative}
.footer:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--uma-yellow),var(--uma-orange),var(--uma-pink),var(--uma-purple));opacity:.85}
.footer-content{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:32px;margin-bottom:32px}
.footer-section{display:flex;flex-direction:column;gap:12px}
.footer-heading{margin:0;font-size:24px;font-weight:800;background:linear-gradient(45deg,var(--uma-yellow),var(--uma-pink));-webkit-background-clip:text;background-clip:text;color:transparent;letter-spacing:0.3px}
.footer-subheading{margin:0;font-size:16px;font-weight:700;color:var(--accent);letter-spacing:0.2px}
.footer-tagline{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.footer-nav{display:flex;flex-direction:column;gap:8px}
.footer-nav a{color:var(--fg);font-size:14px;transition:all .2s ease;padding:4px 0}
.footer-nav a:hover{color:var(--uma-pink);text-decoration:none;padding-left:8px}
.newsletter-text{margin:0;color:var(--muted);font-size:13px;line-height:1.4}
.newsletter-form{display:flex;gap:8px;flex-wrap:wrap}
.newsletter-input{flex:1;min-width:200px;padding:10px 14px;border-radius:8px;border:1px solid #2a3546;background:#0f141b;color:var(--fg);font-size:14px;transition:all .2s ease}
.newsletter-input:focus{border-color:var(--uma-pink);box-shadow:0 0 0 3px #ff9bd222}
.newsletter-btn{padding:10px 20px;border-radius:8px;border:none;background:linear-gradient(135deg,var(--uma-yellow),var(--uma-orange));color:#0b0e14;font-weight:700;font-size:14px;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px #ff9f1c33}
.newsletter-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px #ff9f1c55;filter:brightness(1.05)}
.footer-bottom{max-width:1200px;margin:0 auto;text-align:center;padding-top:24px;border-top:1px solid #1b2330}
.footer-gradient{height:2px;background:linear-gradient(90deg,transparent,var(--uma-pink),transparent);margin-bottom:16px;opacity:.5}
.footer-copyright{margin:0 0 8px;color:var(--fg);font-size:14px;font-weight:600}
.footer-note{margin:0;font-size:11px;line-height:1.4}
@media (max-width: 768px){
  .footer-content{grid-template-columns:1fr;gap:24px}
  .newsletter-form{flex-direction:column}
  .newsletter-input{min-width:100%}
}
.small{color:var(--muted);font-size:12px}
.muted{color:var(--muted)}

/* HTMX page transition + indicator */
.htmx-request .htmx-indicator,.htmx-indicator.htmx-request{opacity:1}
.hx-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:9999;background:linear-gradient(90deg,var(--uma-yellow),var(--uma-pink));box-shadow:0 0 12px #ff9bd266;transform-origin:left center;animation:hx-slide 1s ease-in-out infinite;opacity:0;transition:opacity .15s ease}
@keyframes hx-slide{0%{transform:scaleX(0)}50%{transform:scaleX(0.6)}100%{transform:scaleX(0.95)}}

/* optional fade for content updates */
#main.htmx-added, #main.htmx-settling{transition:opacity .15s ease}
#main.htmx-added{opacity:0}
#main.htmx-settling{opacity:1}

/* Notifications */
.notify-container{position:fixed;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:center;z-index:10000}
.notify{min-width:300px;max-width:90vw;padding:16px 48px 16px 20px;border-radius:12px;border:1px solid #1b2330;background:#0f141b;box-shadow:0 20px 60px #00000088;opacity:0;transform:translateY(-12px) scale(0.98);transition:opacity .18s ease, transform .2s ease;pointer-events:auto;position:relative}
.notify.show{opacity:1;transform:translateY(0) scale(1)}
.notify.closing{opacity:0;transform:translateY(-12px) scale(0.98)}
.notify .title{font-weight:800;margin:0 0 6px}
.notify .msg{margin:0;word-wrap:break-word;overflow-wrap:break-word}
.notify.success{border-color:#1e7f4a;background:linear-gradient(180deg,#0f1b14,#0f141b)}
.notify.success .title{color:#8effa4}
.notify.warn{border-color:#7f6a1e;background:linear-gradient(180deg,#1b180f,#0f141b)}
.notify.warn .title{color:#ffd166}
.notify.error{border-color:#7f1e1e;background:linear-gradient(180deg,#1b0f0f,#0f141b)}
.notify.error .title{color:#ff8e8e}
.notify-close{position:absolute;top:8px;right:8px;width:32px;height:32px;border:none;background:rgba(255,255,255,0.1);color:#fff;font-size:24px;line-height:1;cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .15s ease;padding:0}
.notify-close:hover{background:rgba(255,255,255,0.2);transform:scale(1.1)}
.notify-close:focus{outline:none;box-shadow:0 0 0 2px rgba(255,255,255,0.3)}
.notify.error .notify-close{background:rgba(255,142,142,0.15);color:#ff8e8e}
.notify.error .notify-close:hover{background:rgba(255,142,142,0.25)}



/* ================= Splash page ================= */
body.splash{background:#07090d}
body.splash header{position:fixed;top:0;left:0;right:0;background:linear-gradient(to bottom,#0c0f14ee 50%,#0c0f1400);border-bottom-color:transparent}
body.splash .container{max-width:none;padding:0;margin:0;display:flex;flex-direction:column;min-height:100svh}
@supports (height: 1dvh){
  body.splash .container{min-height:100dvh}
}

/* Fixed video wallpaper behind content */
.video-bg{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.video-bg video{position:absolute;min-width:100%;min-height:100%;top:50%;left:50%;transform:translate(-50%,-50%);object-fit:cover;filter:saturate(1.1) contrast(1.05) brightness(0.8);will-change:transform}
.video-overlay{position:absolute;inset:0;background:radial-gradient(1200px 600px at 50% 20%, #00000020, transparent 60%), linear-gradient(to bottom, #00000066, #000000aa 60%, #000000ee)}

/* Hero over video */
.hero{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:120px 24px 48px;position:relative;z-index:1}
@supports (height: 1dvh){
  .hero{min-height:100dvh}
}
.hero .inner{max-width:960px;margin:auto;text-align:center;background:linear-gradient(135deg, #ffffff10, #ffffff05);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid #ffffff22;border-radius:20px;padding:28px;box-shadow:0 20px 60px #00000066}
.hero h1{font-size:clamp(36px,6vw,68px);margin:0 0 10px;background:linear-gradient(45deg,var(--uma-yellow),var(--uma-orange),var(--uma-pink),var(--uma-purple));-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:800;letter-spacing:0.5px}
.hero .lead{color:#eaeef6;max-width:820px;margin:0 auto 18px;font-size:clamp(16px,2.2vw,20px);line-height:1.6}
.cta-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.cta{display:inline-block;padding:12px 18px;border-radius:999px;font-weight:700;color:#0b0e14;background:linear-gradient(135deg,var(--uma-yellow),var(--uma-orange));box-shadow:0 10px 24px #ff9f1c44;border:0}
.cta:hover{text-decoration:none;filter:brightness(1.05)}
.cta.ghost{background:transparent;color:#f5d4ff;border:1px solid #ffffff44}

/* Content sections */
.section{position:relative}
.content-section{padding:72px 16px;background:linear-gradient(180deg,#0b0e14,#0e1220)}
.content-section.alt{background:linear-gradient(180deg,#0e1220,#151633)}
.content-section .inner{max-width:1100px;margin:0 auto}
.content-section .inner.narrow{max-width:860px}
.content-section h2{margin:0 0 10px;font-size:clamp(36px,3.2vw,50px);font-weight:800;background:linear-gradient(45deg,var(--uma-yellow),var(--uma-orange),var(--uma-pink));-webkit-background-clip:text;background-clip:text;color:transparent}
.content-section p{color:#c9d3df;line-height:1.8;font-size:clamp(16px,2.2vw,24px)}

/* Decorative gradient bars between sections */
.content-section:before{content:"";position:absolute;left:0;right:0;top:-1px;height:6px;background:linear-gradient(90deg,var(--uma-yellow),var(--uma-orange),var(--uma-pink),var(--uma-purple))}
.content-section.alt:before{opacity:.7}

/* Parallax images */
.parallax{position:relative;min-height:60vh;background-attachment:fixed;background-position:center;background-size:cover;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center}
.parallax:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#00000088 0%, #00000055 40%, #00000088 100%)}
.parallax-one{background-image:url('../img/Umamusume-Pretty-Derby-0.jpg')}
.parallax-two{background-image:url('../img/Uma.Musume_.Pretty.Derby.full.4122901-1739201584.jpg')}


/* Solid footer background on splash to cover video */
body.splash .footer{background:linear-gradient(180deg,#0e1220,#0b0e14);position:relative;z-index:1;margin-top:auto}

/* Responsive tweaks */
@media (max-width: 900px){
  .hero .inner{padding:22px;border-radius:16px}
}
@media (max-width: 640px){
  .cta{width:100%;text-align:center}
  .parallax{min-height:48vh}
}

/* ================= Uma detail page ================= */
.uma-hero{background-size:cover;background-position:center;border:1px solid #1b2330;overflow:hidden}
.uma-hero-overlay{position:absolute;inset:0;background:linear-gradient(120deg,#0b0e14cc 40%,#0b0e1488 60%,#0b0e1444 100%)}
.uma-hero-inner{position:relative;display:grid;grid-template-columns:420px 1fr;gap:16px;align-items:stretch;max-width:1200px;margin:0 auto;min-width:0}
.uma-hero-left{display:flex;align-items:flex-start;justify-content:center;padding:8px}
.uma-portrait{width:auto;height:min(80vh,900px);max-width:100%;object-fit:contain;filter:drop-shadow(0 10px 30px #00000066)}
.uma-hero-right{padding:8px 8px 8px 0;display:flex;flex-direction:column;gap:10px;min-width:0}
.uma-title{display:flex;align-items:center;gap:10px}
.uma-icon{width:56px;height:56px;border-radius:12px;border:1px solid #2a3550;object-fit:cover;background:#101525}
.uma-game-details .uma-desc{margin:6px 0 0;line-height:1.6}
.uma-detail .card{max-width:100%}
body.uma-detail{overflow-x:hidden}
.uma-detail .uma-desc,.uma-detail .uma-desc p,.uma-detail .uma-desc li,.uma-detail .irl-text,.uma-detail .irl-text p,.uma-detail .details-list li{overflow-wrap:anywhere;word-break:break-word}
.uma-title h1,.uma-game-details,.uma-game-details .uma-desc,.irl-text,.details-list,.uma-detail-line{overflow-wrap:anywhere;word-break:break-word}

/* IRL row */
.irl-row{display:grid;grid-template-columns:1fr 360px;gap:16px;align-items:start}
.details-list{margin:0;padding-left:18px}
.irl-image{display:flex;align-items:center;justify-content:center}
.irl-image img{display:block;width:auto;max-width:100%;height:auto;max-height:360px;border-radius:12px;border:1px solid #1b2330;object-fit:contain;background:#0f141b}

/* Gallery */
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.gallery-grid a{display:block;border-radius:10px;overflow:hidden;border:1px solid #1b2330;background:#0f141b}
.gallery-grid img{width:100%;height:160px;object-fit:cover;display:block;transition:transform .2s ease}
.gallery-grid a:hover img{transform:scale(1.03)}

@media (max-width: 900px){
  .uma-hero-inner{grid-template-columns:1fr}
  .uma-hero-left{order:1}
  .uma-hero-right{order:2}
  .uma-portrait{height:64vh}
  .irl-row{grid-template-columns:1fr}
}

/* Full-bleed and larger tables for Uma detail */
body.uma-detail .card.full-bleed{position:relative;left:auto;right:auto;margin-left:0;margin-right:0;width:100%;border-left:0;border-right:0;border-radius:14px}
body.uma-detail .large-table .table th,
body.uma-detail .large-table .table td{font-size:16px;padding:14px}
body.uma-detail .large-table h3{font-size:22px}


/* ================= Archive page ================= */
.archive-grid{display:flex;align-items:flex-start;gap:14px;width:100%;padding-left:16px;padding-right:16px}
.archive-col{display:flex;flex-direction:column;gap:14px;flex:1 1 0;min-width:240px}
.archive-grid > .uma-card{width:100%;max-width:none}

/* Interactive card */
.uma-card{--collapsed:96px;--expanded:340px;position:relative;display:block;height:var(--collapsed);border-radius:16px;border:1px solid #1b2330;overflow:hidden;background:linear-gradient(180deg,#0f141b,#0d121a);box-shadow:0 10px 24px #00000033;transition:height .25s ease, box-shadow .2s ease, transform .2s ease;color:inherit}
.uma-card:hover{height:var(--expanded);box-shadow:0 18px 40px #00000055;transform:translateY(-2px)}
.uma-card:focus{outline:none;box-shadow:0 0 0 3px #ff9bd233, 0 10px 24px #00000055}

/* Front (compact) */
.uma-card-front{position:absolute;inset:0;display:flex;gap:12px;align-items:center;padding:14px 14px;z-index:2;background:linear-gradient(135deg,#ffffff10,#ffffff05);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);transition:opacity .2s ease, transform .2s ease}
.uma-card:hover .uma-card-front{opacity:0;transform:translateY(-10px)}

.uma-card-icon{flex:0 0 auto;width:56px;height:56px;border-radius:12px;border:1px solid #2a3550;background:#101525;display:grid;place-items:center;overflow:hidden;box-shadow:inset 0 0 0 1px #00000055}
.uma-icon-img{display:block;width:100%;height:100%;object-fit:cover}

.uma-card-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.uma-card-title{margin:0 0 4px;font-size:18px;line-height:1.2;font-weight:800}
.uma-card-badge{display:inline-flex;align-self:flex-start;white-space:nowrap;margin-top:2px;padding:2px 8px;border-radius:999px;font-size:12px;color:#e7f1ff;background:linear-gradient(135deg,#1b2330,#2a3550);border:1px solid #2a3550}
.uma-card-record{color:#b8c4d2;font-size:13px}

/* Back (expanded) */
.uma-card-back{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1.02);transition:opacity .25s ease .05s, transform .35s ease}
.uma-card:hover .uma-card-back{opacity:1;transform:scale(1)}
.uma-card-back-overlay{position:absolute;inset:0;background:linear-gradient(120deg,#0b0e14dd 40%,#0b0e1499 70%,#0b0e1444 100%)}

.uma-card-back-content{position:relative;z-index:1;height:100%;padding:14px;display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:center}
.uma-card-portrait{display:flex;align-items:flex-end;justify-content:center}
.uma-card-portrait img{width:100%;height:220px;max-width:240px;object-fit:contain;filter:drop-shadow(0 10px 24px #00000088)}

.uma-card-details{display:flex;flex-direction:column;gap:6px}
.uma-card-back-title{margin:0 0 2px;font-size:20px;font-weight:800;letter-spacing:.2px}
.uma-detail-line{font-size:13px;color:#d7e1ee}
.uma-detail-line strong{color:#f0f6ff;margin-right:6px}

/* Make long names wrap nicely */
.uma-card-title,.uma-card-back-title{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* Responsive tweaks */
@media (max-width: 960px){
  .uma-card{--expanded:320px}
  .uma-card-back-content{grid-template-columns:110px 1fr}
  .uma-card-portrait img{height:200px}
}
@media (max-width: 640px){
  .archive-col{min-width:200px}
  .uma-card{--collapsed:110px;--expanded:300px}
  .uma-card-back-content{grid-template-columns:100px 1fr}
  .uma-card-portrait img{height:180px}
}
@media (max-width: 420px){
  .archive-col{min-width:100%}
}

/* ================= Mobile improvements ================= */
@media (max-width: 900px){
  .uma-title{flex-wrap:wrap}
  .uma-title h1{flex:1 1 100%}
  .uma-hero-right{padding:8px}
  .uma-portrait{height:56vh}
  body.uma-detail .card.full-bleed{left:auto;right:auto;margin-left:0;margin-right:0;width:100%;border-radius:14px}
}

@media (max-width: 720px){
  header{padding:12px 16px}
  header nav a{height:34px;padding:0 12px;font-size:14px}
  body.uma-detail .card.full-bleed{left:auto;right:auto;margin-left:0;margin-right:0;width:auto;border-radius:14px}
  body.uma-detail .large-table .table th,
  body.uma-detail .large-table .table td{font-size:14px;padding:10px}
  .archive-grid{width:100% !important;margin-left:0 !important;margin-right:0 !important;left:auto !important;right:auto !important;padding-left:16px;padding-right:16px}
  .table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table th,.table td{white-space:nowrap}
}

@media (max-width: 640px){
  .uma-card{height:auto}
  .uma-card-front,.uma-card-back{position:relative;opacity:1;transform:none}
  .uma-card:hover .uma-card-front{opacity:1;transform:none}
  .uma-card:hover .uma-card-back{opacity:1;transform:none}
  .uma-card-front{border-bottom:1px solid #1b2330}
  .uma-card-back{background-position:center}
  .uma-card-back-overlay{display:none}
  .uma-card-back-content{grid-template-columns:90px 1fr}
  .uma-card-portrait img{height:160px}
  .gallery-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
}

@media (max-width: 480px){
  .uma-portrait{height:46vh}
  .uma-icon{width:44px;height:44px}
}

/* ================= Race cards ================= */
.race-table{width:100%;display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.race-table .table{min-width:720px}
.race-cards{display:none;gap:12px}
.race-card{border:1px solid #1b2330;background:#0f141b;border-radius:14px;padding:14px;box-shadow:0 10px 24px #00000033}
.race-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.race-card-title{margin:0;font-size:16px;font-weight:800}
.race-card-sub{font-size:12px;color:var(--muted);line-height:1.4}
.race-card-pos{flex:0 0 auto}
.race-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin-top:12px}
.race-card-item{display:flex;flex-direction:column;gap:2px}
.race-card-label{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted)}
.race-card-value{font-size:13px;color:var(--fg)}

@media (max-width: 720px){
  .race-table{display:block}
  .race-cards{display:none}
}

@media (max-width: 640px){
  .uma-hero-inner{padding:12px}
  .uma-portrait{height:auto;max-height:50vh;width:min(78vw,320px)}
  .uma-hero-left{padding:4px 0}
}

@media (hover: none){
  .uma-card{height:auto}
  .uma-card:hover{height:auto;box-shadow:0 10px 24px #00000033;transform:none}
  .uma-card-front,.uma-card-back{position:relative;opacity:1;transform:none}
  .uma-card:hover .uma-card-front{opacity:1;transform:none}
  .uma-card:hover .uma-card-back{opacity:1;transform:none}
  .uma-card-front{border-bottom:1px solid #1b2330}
  .uma-card-back-overlay{display:none}
}
