/* =========================================================
   WORLD CUP 2026 — World Cup 2026
   style.css v2.0
   ========================================================= */


/* =========================================================
   01. Reset
   ========================================================= */

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}


/* =========================================================
   02. Base
   ========================================================= */

html,
body{
  width:100%;
  height:100%;
  background:#0B2D24;
  color:white;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",sans-serif;
  overflow:hidden;
}

.app{
  height:100vh;
  position:relative;
}

.screen{
  position:absolute;
  inset:0;
  display:none;
  flex-direction:column;
  align-items:center;
  padding:44px 24px 150px;
  overflow:auto;
}

.screen.active{
  display:flex;
}


/* =========================================================
   03. Typography
   ========================================================= */

h1{
  margin-top:50px;
  font-size:74px;
  line-height:.9;
  letter-spacing:-.08em;
  font-weight:900;
}

h2{
  font-size:56px;
  line-height:1;
  letter-spacing:-.07em;
  font-weight:900;
  margin-bottom:34px;
}

h3{
  width:100%;
  max-width:390px;
  margin:28px 0 12px;
  font-size:22px;
}

p,
.hint{
  opacity:.65;
  font-weight:700;
}

.hint{
  margin-top:60px;
}


/* =========================================================
   04. Home Screen
   ========================================================= */

.home{
  justify-content:center;
  text-align:center;
  padding-bottom:180px;
}

.ball{
  width:280px;
  cursor:pointer;
  position:relative;
  z-index:5;
  filter:drop-shadow(0 14px 22px rgba(0,0,0,.25));
  transition:transform .9s cubic-bezier(.16,1,.3,1);
  transform-origin:center center;
}

body.entering .ball{
  transform:scale(18);
}

.home h1,
.home p,
.hint{
  transition:opacity .25s ease;
}

body.entering .home h1,
body.entering .home p,
body.entering .hint{
  opacity:0;
}


/* =========================================================
   05. Navigation
   ========================================================= */

.back{
  align-self:flex-start;
  margin-bottom:20px;
  border:0;
  background:rgba(255,255,255,.12);
  color:white;
  padding:10px 16px;
  border-radius:999px;
  font-weight:800;
}

.tabbar{
  position:absolute;
  left:16px;
  right:16px;
  bottom:calc(24px + env(safe-area-inset-bottom));
  height:66px;
  display:flex;
  gap:8px;
  padding:8px;
  border-radius:28px;
  background:rgba(0,0,0,.28);
  backdrop-filter:blur(16px);
  z-index:20;
}

.tabbar button{
  flex:1;
  border:0;
  border-radius:20px;
  background:transparent;
  color:white;
  font-weight:800;
  font-size:15px;
}


/* =========================================================
   06. Flags
   ========================================================= */

.flag{
  width:44px;
  height:32px;
  object-fit:contain;
  display:block;
  margin:0 auto 8px;
}

.title-flag{
  width:52px;
  height:38px;
  object-fit:contain;
}


/* =========================================================
   07. Teams Overview
   ========================================================= */

.team-grid{
  width:100%;
  max-width:390px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.team-grid button{
  height:104px;
  border:0;
  border-radius:24px;
  background:rgba(255,255,255,.10);
  color:white;
  font-size:30px;
  font-weight:800;
}

.team-grid button > span{
  display:block;
}

.team-card-name{
  margin-top:6px;
  font-size:13px !important;
  line-height:1.05;
  letter-spacing:0 !important;
}

.team-card-progress{
  width:70%;
  height:6px;
  margin:8px auto 6px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
}

.team-card-progress-fill{
  height:100%;
  background:#1FA463;
  border-radius:999px;
}

.team-card-counts{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:5px;
  margin-top:6px;
  font-size:12px;
  font-weight:900;
  line-height:1;
}

.team-card-counts span{
  display:inline;
  margin:0;
  letter-spacing:0;
}

.team-owned{
  color:#1FA463;
}

.team-divider{
  color:rgba(255,255,255,.35);
}

.team-swaps{
  color:#D7A93A;
}


/* =========================================================
   08. Team Detail Header
   ========================================================= */

.team-header{
  width:100%;
  max-width:390px;
  margin-bottom:24px;
}

.team-name-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-bottom:16px;
}

.team-name-row h2{
  margin:0;
  font-size:46px;
  line-height:1;
  letter-spacing:-.05em;
}

.team-name-row .title-flag{
  width:64px;
  height:44px;
  margin:0;
  object-fit:contain;
}

.team-progress-bar{
  width:100%;
  height:18px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  overflow:hidden;
}

.team-progress-fill{
  height:100%;
  border-radius:999px;
  background:#22B573;
  transition:width .25s ease;
}

.team-progress-text{
  margin-top:10px;
  text-align:center;
  font-size:18px;
  font-weight:700;
  line-height:1;
  letter-spacing:.04em;
  opacity:.7;
}


/* =========================================================
   09. Sticker Grid
   ========================================================= */

#stickers.team-grid{
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  max-width:390px;
}

#stickers .sticker{
  height:88px;
  padding:8px 6px;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  border:0;
  transition:transform .12s ease, background .12s ease;
}

#stickers .sticker:active{
  transform:scale(.94);
}

#stickers .sticker-id{
  font-size:16px;
  font-weight:850;
  line-height:1;
  opacity:.82;
  margin-bottom:7px;
}

#stickers .sticker-title{
  font-size:15px;
  font-weight:500;
  line-height:1.05;
  letter-spacing:0;
  max-width:100%;
}


/* =========================================================
   10. Sticker States
   ========================================================= */

#stickers .sticker.missing{
  background:rgba(255,255,255,.10);
  color:white;
  border-radius:18px;
}

#stickers .sticker.owned{
  background:#1FA463;
  color:white;
  border-radius:18px 0 18px 0;
}

#stickers .sticker.swap{
  background:#D7A93A;
  color:#10241d;
  border-radius:18px 0 18px 18px;
}

#stickers .sticker.swap::after{
  content:"";
}


/* =========================================================
   11. Progress Screen
   ========================================================= */

.stat.big{
  font-size:86px;
  font-weight:900;
  letter-spacing:-.07em;
}

.stats{
  margin-top:40px;
  width:100%;
  max-width:360px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.stats div{
  background:rgba(255,255,255,.10);
  border-radius:22px;
  padding:18px 10px;
  text-align:center;
}

.stats strong{
  display:block;
  font-size:28px;
}

.stats span{
  font-size:13px;
  opacity:.65;
}


/* =========================================================
   12. Table Screen
   ========================================================= */

.album-table{
  width:100%;
  max-width:760px;
  margin:0 auto;
  display:grid;
  gap:44px;
  padding-bottom:90px;
}

.table-section{
  width:100%;
}

.table-team-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}

.table-team-header img{
  width:50px;
  height:32px;
  object-fit:contain;
  flex-shrink:0;
}

.table-team-header strong{
  font-size:24px;
  font-weight:850;
  line-height:1;
  letter-spacing:-.03em;
}

.table-stickers{
  display:grid;
  grid-template-columns:repeat(10,1fr);
  gap:8px;
}

.table-sticker{
  height:42px;
  border:0;
  border-radius:11px;
  background:rgba(255,255,255,.10);
  color:white;
  font-size:15px;
  font-weight:850;
  cursor:pointer;
  transition:transform .12s ease, background .15s ease;
}

.table-sticker:active{
  transform:scale(.94);
}

.table-sticker.missing{
  background:rgba(255,255,255,.10);
  color:white;
  border-radius:11px;
}

.table-sticker.owned{
  background:#1FA463;
  color:white;
  border-radius:11px 0 11px 0;
}

.table-sticker.swap{
  background:#D7A93A;
  color:#10241d;
  border-radius:11px 0 11px 11px;
}


/* =========================================================
   13. Table Info Strip
   ========================================================= */

.table-info{
  margin-top:12px;
  min-height:34px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  border-radius:12px;
  background:rgba(255,255,255,.055);
}

.table-info-muted{
  opacity:.45;
  font-size:14px;
  font-weight:650;
}

.table-info-number{
  width:28px;
  font-size:18px;
  font-weight:850;
  line-height:1;
  text-align:center;
}

.table-info-title{
  flex:1;
  font-size:15px;
  font-weight:650;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.table-info-state{
  font-size:10px;
  font-weight:850;
  line-height:1;
  padding:5px 8px;
  border-radius:999px;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.table-info-state.missing{
  background:rgba(255,255,255,.14);
  color:white;
}

.table-info-state.owned{
  background:#1FA463;
  color:white;
}

.table-info-state.swap{
  background:#D7A93A;
  color:#10241d;
}


/* =========================================================
   14. Responsive
   ========================================================= */

@media (max-width:480px){
  .album-table{
    max-width:390px;
    gap:36px;
  }

  .table-stickers{
    gap:5px;
  }

  .table-sticker{
    height:31px;
    font-size:11px;
    border-radius:8px;
  }

  .table-sticker.missing{
    border-radius:8px;
  }

  .table-sticker.owned{
    border-radius:8px 0 8px 0;
  }

  .table-sticker.swap{
    border-radius:8px 0 8px 8px;
  }

  .table-team-header img{
    width:32px;
    height:22px;
  }

  .table-team-header strong{
    font-size:18px;
  }

  .table-info{
    min-height:34px;
  }
}

@media (display-mode:standalone){
  .screen{
    padding-bottom:110px;
  }

  .home{
    padding-bottom:96px;
  }
}

/* =========================================================
   15. Table Sort Control
   ========================================================= */

.table-sort{
  display:flex;
  margin:-16px 0 34px;
  padding:4px;
  gap:4px;
  background:rgba(255,255,255,.08);
  border-radius:999px;
}

.table-sort button{
  border:0;
  background:transparent;
  color:white;
  padding:9px 18px;
  border-radius:999px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}

.table-sort button.active{
  background:white;
  color:#0B2D24;
}

.stats .stat-card.owned{
  background:#1FA463;
  border-radius:22px 0 22px 0;
}

.stats .stat-card.exchange{
  background:#D7A93A;
  color:#10241d;
  border-radius:22px 0 22px 22px;
}

.stats .stat-card.missing{
  background:rgba(255,255,255,.10);
  border-radius:22px;
}

/* =========================================================
   16. Position Search
   ========================================================= */

.position-search{
  width:100%;
  max-width:390px;
  margin-top:34px;
}

.position-search input{
  width:100%;
  height:48px;
  border:0;
  border-radius:999px;
  padding:0 18px;
  background:rgba(255,255,255,.12);
  color:white;
  font-size:16px;
  font-weight:700;
  outline:none;
}

.position-search input::placeholder{
  color:rgba(255,255,255,.45);
}

.search-results{
  margin-top:14px;
  display:grid;
  gap:8px;
}

.search-result{
  border:0;
  padding:12px 14px;
  text-align:left;
  color:white;
  background:rgba(255,255,255,.10);
  border-radius:16px;
}

.search-result.owned{
  background:#1FA463;
  border-radius:16px 0 16px 0;
}

.search-result.swap{
  background:#D7A93A;
  color:#10241d;
  border-radius:16px 0 16px 16px;
}

.search-result strong,
.search-result span,
.search-result em{
  display:block;
}

.search-result strong{
  font-size:13px;
  opacity:.75;
}

.search-result span{
  font-size:17px;
  font-weight:750;
  margin-top:3px;
}

.search-result em{
  font-style:normal;
  font-size:11px;
  font-weight:900;
  margin-top:6px;
  text-transform:uppercase;
  opacity:.75;
}

/* =========================================================
   17. Collector Login
   ========================================================= */

.login{
  justify-content:center;
  text-align:center;
  padding-bottom:120px;
}

.login h1{
  margin-top:0;
}

.login h3{
  margin:42px 0 18px;
  text-align:center;
}

.collector-list{
  width:100%;
  max-width:320px;
  display:grid;
  gap:12px;
}

.collector-list button{
  height:58px;
  border:0;
  border-radius:22px;
  background:rgba(255,255,255,.10);
  color:white;
  font-size:20px;
  font-weight:850;
}

.collector-list button.active{
  background:#D7A93A;
  color:#10241d;
}

.play-button{
  margin-top:26px;
  width:100%;
  max-width:320px;
  height:58px;
  border:0;
  border-radius:999px;
  background:white;
  color:#0B2D24;
  font-size:18px;
  font-weight:900;
}