/* Home v14: everything below the league card is rebuilt in the same card style as your profile.
   Phones: one column (you, league, today, arcade, GTA, friends).
   Computers: a dashboard. You across the top, then the main column and a side column. */

/* ---------- order on phones ---------- */
.h14{display:flex;flex-direction:column}
.h14-side,.h14-main{display:contents}
.h14-head{order:0}.h14-o1{order:1}.h14-o2{order:2}.h14-play{order:3}.h14-gta{order:4}.h14-fr{order:5}.h14-main>.h14-card:not(.h14-play):not(.h14-fr){order:6}

/* ---------- the shared card ---------- */
.h14-card{position:relative;margin-top:14px;padding:16px;border-radius:24px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08)}
.h14-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.h14-h>div{min-width:0}
.h14-h h2{margin:0;font:800 20px/1.1 ui-rounded,"SF Pro Rounded",-apple-system,system-ui,sans-serif;letter-spacing:-.02em}
.h14-h small{display:block;margin-top:4px;font-size:13px;font-weight:600;color:rgba(235,235,245,.55)}
.h14-more{flex:none;height:32px;padding:0 13px;border-radius:99px;background:rgba(255,255,255,.07);font-size:13px;font-weight:700;color:rgba(255,255,255,.85)}
.h14-more:hover{background:rgba(255,255,255,.12)}

/* ---------- Today: a grid of small tiles ---------- */
.h14-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.h14-t{position:relative;display:flex;align-items:center;gap:10px;min-width:0;padding:10px;border-radius:16px;text-align:left;
  background:linear-gradient(135deg,color-mix(in srgb,var(--c) 15%,transparent),rgba(255,255,255,.025) 75%);border:1px solid color-mix(in srgb,var(--c) 26%,rgba(255,255,255,.05));transition:transform .15s,background .2s}
.h14-t:active{transform:scale(.97)}
.h14-t:hover{background:linear-gradient(135deg,color-mix(in srgb,var(--c) 24%,transparent),rgba(255,255,255,.04) 75%)}
.h14-ti{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;color:#fff;
  background:linear-gradient(160deg,color-mix(in srgb,var(--c) 88%,#fff 12%),color-mix(in srgb,var(--c) 60%,#000));box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.h14-ti svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.h14-tt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.h14-tt b{font-size:13.5px;padding-right:8px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h14-tt small{font-size:11.5px;font-weight:600;color:rgba(235,235,245,.58);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h14-ts{position:absolute;top:7px;right:7px;width:8px;height:8px;border-radius:50%;background:#ff453a;box-shadow:0 0 0 2px #121118}
.h14-t.done{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.06)}
.h14-t.done .h14-ti{filter:grayscale(.7) brightness(.75)}
.h14-t.done .h14-tt b{color:rgba(255,255,255,.55)}
.h14-t.done .h14-ts{display:grid;place-items:center;width:18px;height:18px;top:6px;right:6px;background:#30d158;color:#04170a;box-shadow:none}
.h14-t.done .h14-ts svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.h14-today .h13-ring{width:48px;height:48px}
.h14-today .h13-how{margin-top:10px}

/* ---------- Arcade ---------- */
.h14-top{display:flex;align-items:center;gap:14px;width:100%;margin:0 0 14px;padding:12px;border-radius:18px;text-align:left;
  background:radial-gradient(120% 140% at 0% 0%,rgba(143,130,236,.28),transparent 60%),rgba(255,255,255,.04);border:1px solid rgba(143,130,236,.25)}
.h14-top .lg-tile{width:64px!important;height:64px!important;border-radius:18px!important;flex:none}
.h14-top .h14-tt small{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#b4a9ff}
.h14-top .h14-tt b{font-size:20px;font-weight:850;letter-spacing:-.02em}
.h14-go{flex:none;height:36px;padding:0 18px;display:grid;place-items:center;border-radius:99px;background:#fff;color:#0b0a12;font-size:14px;font-weight:800}
.h14-games{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 8px}
.h14-g{display:flex!important;flex-direction:column;align-items:center;gap:6px;min-width:0;width:auto!important;padding:0!important;background:none!important}
.h14-g .lg-tile{width:min(64px,100%)!important;height:auto!important;aspect-ratio:1;border-radius:18px!important}
.h14-g>b{max-width:100%;font-size:11.5px!important;font-weight:650;color:rgba(255,255,255,.85);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- GTA ---------- */
.h14-gta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;cursor:pointer;min-height:0!important;
  background:radial-gradient(90% 160% at 100% 100%,rgba(255,138,76,.32),transparent 60%),radial-gradient(70% 140% at 0% 0%,rgba(236,72,153,.3),transparent 60%),#160a18!important;border-color:rgba(236,72,153,.28)!important}
.h14-gta>img{flex:none;width:56px!important;height:56px!important;object-fit:contain;filter:drop-shadow(0 6px 12px rgba(0,0,0,.5))}
.h14-gx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.h14-gx>small{font-size:11.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.h14-gx .h12-cd{gap:6px;font-size:12px}
.h14-gx .h12-cd{flex-wrap:nowrap}.h14-gx .h12-cd b{font-size:22px}
.h14-gf{flex:1 1 100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.h14-gf>em{font-style:normal;font-size:13px;color:rgba(255,255,255,.65)}.h14-gf>em b{color:#fff}
.h14-pre{flex:none;height:34px;padding:0 12px;border-radius:99px;background:#fff;color:#0b0a12;font-size:12.5px;font-weight:800;white-space:nowrap}
.h14-pre.on{background:#30d158;color:#04170a}

/* ---------- Friends ---------- */
.h14-fr .pp9{margin:0 -16px;padding:2px 16px 4px}
.h14-fr .h9-feed{margin-top:12px;background:rgba(0,0,0,.18)}

/* the league card sits in the same rhythm */
.h14 .h14-o1 .fu6-wk{margin-top:14px}
.h14 .h14-o2 .h14-card{margin-top:14px}

/* ---------- small phones ---------- */
@media (max-width:360px){.h14-games{grid-template-columns:repeat(3,minmax(0,1fr))}.h14-gx .h12-cd b{font-size:18px}}

/* =====================================================================
   Computers: a dashboard
   ===================================================================== */
@media (min-width:1100px){
  #hm .body > .pg:has(> .h14){max-width:1240px!important;margin:0 auto}
  .h14{display:grid!important;grid-template-columns:minmax(0,1fr) 360px;grid-template-areas:"head head" "main side";column-gap:24px;align-items:start;padding-bottom:64px}
  .h14 > .h14-head{grid-area:head!important}.h14 > .h14-side{grid-area:side!important}.h14 > .h14-main{grid-area:main!important}
  .h14-head{grid-area:head;position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"ban ban ban" "av id cards";align-items:end;column-gap:20px;row-gap:16px;
    border-radius:28px;overflow:hidden;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);padding:0 24px 22px}
  .h14-head .h12-ban{grid-area:ban;height:150px!important;margin:0 -24px!important;border-radius:0!important}
  .h14-head .fu5-hd{display:contents}
  .h14-head .h12-av{grid-area:av;margin-top:-64px!important;align-self:end}
  .h14-head .h14-id{grid-area:id;display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-bottom:6px;min-width:0}
  .h14-head .fu5-name{margin:0!important;text-align:left;font-size:30px}
  .h14-head .fu6-pill{margin:0!important}
  .h14-head .h12-cards{grid-area:cards;display:flex!important;gap:10px!important;margin:0!important;padding:12px 0 0!important;overflow:visible!important}
  .h14-head .h12-cards .fu6-c{flex:none!important;width:132px;min-width:0!important;padding:14px 14px 12px!important;border-radius:18px!important}
  .h14-head .h12-cards .fu6-c b{font-size:24px!important}
  .h14-head .h12-cards .fu6-c.tagged{padding-top:20px!important}
  .h14-head .h12-cards .fu6-c.sk{height:72px}
  .h14-head .h12-tr{top:14px!important;right:16px!important}
  .h14{row-gap:16px}
  .h14-side{grid-area:side;display:flex!important;flex-direction:column;gap:16px;position:sticky;top:20px}
  .h14-main{grid-area:main;display:flex!important;flex-direction:column;gap:16px;min-width:0}
  .h14-side>*,.h14-main>*{margin-top:0!important}
  .h14 .h14-o1 .fu6-wk,.h14 .h14-o2 .h14-card{margin-top:0!important}
  .h14-card{padding:20px;border-radius:24px}
  .h14-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  .h14-games{grid-template-columns:repeat(8,minmax(0,1fr));gap:18px 12px}
  .h14-g .lg-tile{width:min(72px,100%)!important}
  .h14-top .lg-tile{width:72px!important;height:72px!important}
  .h14-side .h13-pz>span{flex:1;justify-content:center;padding-right:8px}
  .h14-side .h13-go{width:100%;justify-content:center;margin:4px 0 0}
  .h14-side .h13-lg>b{font-size:24px}
  .h14-side .fu6-wkm>div:first-child b{font-size:44px}
  .h14-t:hover,.h14-g:hover .lg-tile,.h14-top:hover{filter:brightness(1.08)}
}
@media (min-width:1100px) and (max-width:1279px){
  .h14{grid-template-columns:minmax(0,1fr) 320px}
  .h14-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h14-games{grid-template-columns:repeat(4,minmax(0,1fr))}
  .h14-head .h12-cards .fu6-c{width:112px}
}
@media (min-width:1500px){
  #hm .body > .pg:has(> .h14){max-width:1380px!important}
  .h14{grid-template-columns:minmax(0,1fr) 380px;column-gap:28px}
}
/* the narrow right-hand column on Feed and You */
.dk-rail .h14-card{margin-top:0;padding:16px}
.dk-rail .h14-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
.dk-rail .h14-h h2{font-size:18px}
