.pesis-paivan-pelit {
  --pp-primary:#f58220;
  --pp-card:#101113;
  --pp-card2:#18191d;
  --pp-text:#ffffff;
  --pp-muted:#a9a9a9;
  --pp-line:rgba(255,255,255,.12);
  font-family: Arial, Helvetica, sans-serif;
  color:var(--pp-text);
  width:100%;
}

.pp-games-head{
  display:block;
  margin-bottom:22px;
}

.pp-games-kicker{
  color:var(--pp-primary);
  font-size:13px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:8px;
}

.pp-games-title{
  margin:0;
  font-size:clamp(30px,4vw,48px);
  line-height:.95;
  font-weight:950;
  color:#111;
  text-transform:uppercase;
  letter-spacing:-.03em;
}

.pp-games-title:after{
  content:"";
  display:block;
  width:76px;
  height:5px;
  background:var(--pp-primary);
  margin-top:14px;
}

.pp-games-date{
  display:none;
}

.pp-games-list{
  display:flex;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 2px 16px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}

.pp-games-list::-webkit-scrollbar{height:7px}
.pp-games-list::-webkit-scrollbar-thumb{background:var(--pp-primary);border-radius:999px}
.pp-games-list::-webkit-scrollbar-track{background:rgba(0,0,0,.08);border-radius:999px}

.pp-game-card{
  flex:0 0 300px;
  scroll-snap-align:start;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 34%),
    linear-gradient(180deg,var(--pp-card2),var(--pp-card));
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  min-height:390px;
  overflow:hidden;
  box-shadow:0 14px 34px rgba(0,0,0,.18);
  display:grid;
  grid-template-rows:46px 90px 1fr 58px 82px;
}

.pp-game-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  border-bottom:1px solid var(--pp-line);
}

.pp-game-day{
  color:#fff;
  font-size:14px;
  font-weight:900;
  text-transform:uppercase;
}

.pp-status-pill{
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  color:#fff;
  background:transparent;
  border-radius:0;
  padding:0;
}

.pp-status-live{color:#ff2d2d}
.pp-status-finished{color:#fff}

.pp-game-time{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--pp-primary);
  font-size:46px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.04em;
  border-bottom:1px solid var(--pp-line);
}

.pp-teams{
  padding:24px 22px 14px;
  display:grid;
  grid-template-rows:1fr 34px 1fr;
  gap:10px;
}

.pp-team-row{
  display:grid;
  grid-template-columns:52px 1fr;
  gap:14px;
  align-items:center;
}

.pp-team-logo{
  width:52px;
  height:52px;
  object-fit:contain;
  background:transparent;
  border:0;
  padding:0;
}

.pp-team-name{
  color:#fff;
  font-size:18px;
  font-weight:850;
  line-height:1.08;
}

.pp-vs{
  display:flex;
  align-items:center;
  gap:12px;
  color:rgba(255,255,255,.22);
  font-size:22px;
  font-weight:950;
  justify-content:center;
  text-transform:uppercase;
}

.pp-vs:before,
.pp-vs:after{
  content:"";
  height:1px;
  background:rgba(255,255,255,.12);
  flex:1;
}

.pp-game-meta{
  padding:12px 22px 0;
  color:var(--pp-muted);
  font-size:13px;
  line-height:1.25;
  text-transform:uppercase;
  border-top:1px solid var(--pp-line);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.pp-game-bottom{
  border-top:1px solid var(--pp-line);
  padding:12px 22px 16px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.pp-result{
  color:var(--pp-primary);
  font-size:46px;
  font-weight:950;
  line-height:1;
  letter-spacing:-.04em;
  white-space:nowrap;
}

.pp-no-result{
  color:rgba(255,255,255,.45);
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
}

.pp-games-empty,
.pp-games-error,
.pp-games-loading{
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:10px;
  padding:16px;
  color:#666;
}

@media(max-width:900px){
  .pp-game-card{flex-basis:280px;min-height:370px}
  .pp-game-time{font-size:40px}
  .pp-team-name{font-size:16px}
}

@media(max-width:600px){
  .pp-game-card{flex-basis:82vw}
}

/* ===== v32 premium-tekstuurit ja varjostukset ===== */

.pp-game-card{
  background:
    radial-gradient(circle at 50% -20%, rgba(255,255,255,.14), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(245,130,32,.10), transparent 30%),
    linear-gradient(180deg, rgba(38,39,43,.96), rgba(13,14,16,.98)),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.026) 0px,
      rgba(255,255,255,.026) 1px,
      transparent 1px,
      transparent 6px
    );
  background-blend-mode: normal, screen, normal, overlay;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:
    0 18px 42px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.70);
}

.pp-game-card:hover{
  transform:translateY(-4px);
  box-shadow:
    0 24px 54px rgba(0,0,0,.48),
    0 0 0 1px rgba(245,130,32,.24),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.75);
}

.pp-game-top{
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    linear-gradient(90deg, rgba(245,130,32,.16), transparent 42%);
}

.pp-game-time{
  background:linear-gradient(180deg,#ff9a22,#f05d06);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 18px rgba(245,130,32,.18);
  font-size:32px;
}

.pp-status-pill{
  background:linear-gradient(180deg,#ff8d24,#ec6508);
  color:#fff;
  padding:6px 12px;
  border-radius:999px;
  box-shadow:0 6px 16px rgba(245,130,32,.24);
}

.pp-teams{
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent);
}

.pp-team-logo{
  width:42px;
  height:42px;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.35));
}

.pp-team-name{
  font-size:16px;
  font-weight:760;
  text-shadow:0 1px 1px rgba(0,0,0,.45);
}

.pp-vs{
  color:rgba(255,255,255,.13);
  font-size:15px;
}

.pp-vs:before,
.pp-vs:after{
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}

.pp-game-meta{
  color:rgba(255,255,255,.58);
  font-weight:600;
  letter-spacing:.01em;
}

.pp-game-bottom{
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), rgba(0,0,0,.18));
}

.pp-result{
  background:linear-gradient(180deg,#ff9a22,#f05d06);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-shadow:0 0 18px rgba(245,130,32,.18);
  font-size:42px;
}

/* Valkoisella sivupohjalla parempi väli */
.pesis-paivan-pelit{
  padding:4px 0 8px;
}

/* Mobiilissa kortti ei saa kasvaa liian massiiviseksi */
@media(max-width:600px){
  .pp-game-card{
    min-height:360px;
  }

  .pp-game-time{
    font-size:30px;
  }

  .pp-result{
    font-size:38px;
  }

  .pp-team-logo{
    width:40px;
    height:40px;
  }

  .pp-team-name{
    font-size:15px;
  }
}


/* ===== v33 sarja + klikattava kenttä ===== */

.pp-game-meta{
  display:block;
  -webkit-line-clamp:unset;
  overflow:visible;
}

.pp-series-line{
  color:var(--pp-primary);
  font-size:12px;
  font-weight:800;
  line-height:1.25;
  margin-bottom:6px;
}

.pp-stadium-link{
  display:block;
  color:rgba(255,255,255,.68);
  text-decoration:none;
  font-size:12px;
  font-weight:650;
  line-height:1.25;
}

.pp-stadium-link:hover{
  color:var(--pp-primary);
  text-decoration:underline;
}

@media(max-width:600px){
  .pp-series-line,
  .pp-stadium-link{
    font-size:11px;
  }
}

/* ===== v34 varjon leikkaantumisen korjaus ===== */

.pp-games-list{
  overflow-x:auto;
  overflow-y:visible;
  padding:6px 4px 28px;
  margin-bottom:-10px;
}

.pp-game-card{
  box-shadow:
    0 18px 34px rgba(0,0,0,.28),
    0 2px 8px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.70);
}

.pesis-paivan-pelit{
  overflow:visible;
  padding-bottom:18px;
}

/* poistetaan mahdollinen terävä aluevarjo, jos selain piirtää sen listasta */
.pp-games-list::after{
  content:"";
  display:block;
  flex:0 0 1px;
}

/* ===== v35: vain korttikohtainen luonnollinen varjo ===== */

.pesis-paivan-pelit{
  overflow:visible;
  padding-bottom:0;
}

.pp-games-list{
  overflow-x:auto;
  overflow-y:visible;
  padding:8px 10px 34px;
  margin-bottom:0;
  background:transparent !important;
  box-shadow:none !important;
}

.pp-game-card{
  position:relative;
  box-shadow:
    0 10px 22px rgba(0,0,0,.20),
    0 22px 42px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.70);
}

.pp-game-card::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:-16px;
  height:22px;
  border-radius:50%;
  background:rgba(0,0,0,.18);
  filter:blur(12px);
  z-index:-1;
  pointer-events:none;
}

.pp-game-card:hover{
  box-shadow:
    0 12px 26px rgba(0,0,0,.24),
    0 26px 50px rgba(0,0,0,.18),
    0 0 0 1px rgba(245,130,32,.18),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.75);
}

/* Estetään vanhan listan pseudo-elementin aiheuttama outo varjo/tila */
.pp-games-list::after{
  content:none !important;
  display:none !important;
}

/* Jos YOOtheme tai selain leikkaa negatiivisen varjon, jätetään riittävästi sisätilaa */
.pp-games-list{
  contain:none;
}


/* ===== v38 sarja/lohko/kenttä omilla riveillä ===== */
.pp-info{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.pp-info-block{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.pp-info-label{
  color:#f58220;
  font-size:10px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.pp-info-value{
  color:#fff;
  font-size:12px;
  line-height:1.2;
  font-weight:650;
}

.pp-stadium-link{
  color:#fff;
  text-decoration:none;
}

.pp-stadium-link:hover{
  color:#f58220;
  text-decoration:underline;
}

/* ===== v39: ei päällekkäisiä tekstejä ===== */

.pp-game-card{
  min-height:520px;
  grid-template-rows:46px 90px 210px minmax(125px,auto) 76px;
}

.pp-game-meta{
  padding:16px 22px 10px;
  overflow:visible;
  display:block;
}

.pp-info{
  gap:7px;
}

.pp-info-label{
  font-size:10px;
  line-height:1;
}

.pp-info-value{
  font-size:12px;
  line-height:1.22;
  word-break:normal;
  overflow-wrap:break-word;
}

.pp-game-bottom{
  position:relative;
  min-height:76px;
  padding:14px 22px 18px;
}

.pp-no-result{
  font-size:13px;
  line-height:1.2;
}

@media(max-width:600px){
  .pp-game-card{
    min-height:500px;
    grid-template-rows:46px 88px 205px minmax(120px,auto) 72px;
  }
}
