.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;
  }
}

/* ===== v41: koti/vieras, karttalinkki ja ottelutila ===== */

.pp-homeaway-home {
  background: transparent !important;
  color: var(--pp-primary) !important;
  border: 1px solid var(--pp-primary);
}

.pp-homeaway-away {
  background: transparent !important;
  color: rgba(255,255,255,.68) !important;
  border: 1px solid rgba(255,255,255,.22);
}

.pp-stadium-link {
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  text-decoration: underline;
  text-decoration-color: var(--pp-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.pp-stadium-link:hover,
.pp-stadium-link:focus {
  color: var(--pp-primary) !important;
}

.pp-game-bottom {
  min-height: 86px;
  padding: 12px 18px 16px;
}

.pp-bottom-message,
.pp-live-message {
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 750;
}

.pp-live-message {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.pp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e32636;
  box-shadow: 0 0 0 5px rgba(227,38,54,.15);
  animation: pp-live-pulse 1.4s infinite;
}

@keyframes pp-live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .55;
    transform: scale(.82);
  }
}

.pp-finished-result {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.pp-period-scores {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pp-period-score {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
}

.pp-period-score strong {
  color: #fff;
  font-size: 13px;
}

.pp-status-scheduled {
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.08);
}

.pp-status-canceled {
  color: #fff;
  background: #8e2634;
}

/* ======================================================
   v51 – koti/vieras, logojen näkyvyys ja sisällön mahtuminen
   ====================================================== */

/* Kortti kasvaa sisällön mukaan eikä leikkaa alaosaa */
.pp-game-card {
  flex: 0 0 310px;
  min-height: 610px;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Yläreunassa vain KOTI tai VIERAS */
.pp-game-top {
  flex: 0 0 48px;
  min-height: 48px;
  padding: 0 16px;
}

.pp-game-day {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent !important;
  border-radius: 0;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pp-game-day.pp-homeaway-home {
  color: var(--pp-primary) !important;
  border: 0 !important;
}

.pp-game-day.pp-homeaway-away {
  color: rgba(255,255,255,.84) !important;
  border: 0 !important;
}

/* Mahdollinen vanha sisäinen koti/vieras-merkki piiloon */
.pp-game-day .pp-homeaway {
  display: none !important;
}

/* Kellonaika maltillisen kokoiseksi */
.pp-game-time {
  flex: 0 0 96px;
  min-height: 96px;
  font-size: 34px;
}

/* Joukkuealueelle riittävästi korkeutta */
.pp-teams {
  flex: 1 0 260px;
  min-height: 260px;
  padding: 24px 20px 18px;
  grid-template-rows: minmax(76px, auto) 34px minmax(76px, auto);
  align-content: center;
}

/* Logo ja nimi eivät törmää */
.pp-team-row {
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

/*
 * Vaalea säteittäinen hohde logon takana.
 * Ei laatikkoa eikä näkyvää reunaa, mutta mustat logo-osat erottuvat.
 */
.pp-team-logo {
  width: 54px;
  height: 54px;
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255,255,255,.92) 0%,
      rgba(255,255,255,.62) 42%,
      rgba(255,255,255,.16) 66%,
      transparent 76%
    );
  filter:
    drop-shadow(0 2px 3px rgba(0,0,0,.48))
    drop-shadow(0 0 4px rgba(255,255,255,.20));
}

/* Joukkueen nimi saa rivittyä eikä huku kortista */
.pp-team-name {
  min-width: 0;
  max-width: 100%;
  color: #fff;
  font-size: 15px;
  line-height: 1.14;
  font-weight: 760;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* VS pieneksi ja hillityksi */
.pp-vs {
  min-height: 30px;
  font-size: 14px;
  color: rgba(255,255,255,.18);
}

/* Sarja / lohko / kenttä ei saa leikkautua */
.pp-game-meta {
  flex: 0 0 auto;
  min-height: 150px;
  padding: 15px 18px 16px;
  overflow: visible;
  box-sizing: border-box;
}

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

.pp-info-block {
  min-width: 0;
}

.pp-info-label {
  margin-bottom: 2px;
  color: var(--pp-primary);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .09em;
}

.pp-info-value {
  display: block;
  max-width: 100%;
  color: rgba(255,255,255,.92);
  font-size: 11px;
  line-height: 1.24;
  font-weight: 680;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Kenttä säilyy klikattavana */
.pp-stadium-link {
  display: block;
  max-width: 100%;
  color: rgba(255,255,255,.94) !important;
  text-decoration: underline;
  text-decoration-color: var(--pp-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 5;
}

/* Tulos- tai tilarivi pysyy kortin pohjassa */
.pp-game-bottom {
  flex: 0 0 auto;
  min-height: 82px;
  margin-top: auto;
  padding: 14px 18px 18px;
  box-sizing: border-box;
}

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

/* Mobiili */
@media (max-width: 600px) {
  .pp-game-card {
    flex-basis: 86vw;
    min-height: 590px;
  }

  .pp-teams {
    flex-basis: 250px;
    min-height: 250px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .pp-team-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
  }

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

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

  .pp-game-meta {
    min-height: 145px;
  }
}

/* ======================================================
   v52 – tiiviimpi kortti, luonnollinen logohehku ja varjo
   ====================================================== */

/* Karusellilla ei ole omaa taustaa tai laattamaista varjoa */
.pp-games-list {
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 6px;
  padding-bottom: 22px;
}

.pp-games-list::before,
.pp-games-list::after {
  box-shadow: none !important;
}

/* Kortti selvästi matalammaksi */
.pp-game-card {
  flex: 0 0 300px;
  min-height: 500px;
  height: 500px;
  overflow: hidden;

  /* Vain kortin oma, kevyt ja luonnollinen varjo */
  box-shadow:
    0 5px 12px rgba(0,0,0,.13),
    0 14px 28px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.07);

  transition:
    transform .18s ease,
    box-shadow .18s ease;
}

/* Poistetaan aiemmin lisätty keinotekoinen soikea alavarjo */
.pp-game-card::after {
  content: none !important;
  display: none !important;
}

.pp-game-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 15px rgba(0,0,0,.15),
    0 17px 32px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* Yläosa hieman matalammaksi */
.pp-game-top {
  flex: 0 0 44px;
  min-height: 44px;
}

.pp-game-time {
  flex: 0 0 78px;
  min-height: 78px;
  font-size: 31px;
}

/* Joukkuealueen turha tyhjä tila pois */
.pp-teams {
  flex: 0 0 205px;
  min-height: 205px;
  padding: 15px 18px 12px;
  grid-template-rows:
    minmax(60px, auto)
    25px
    minmax(60px, auto);
  gap: 4px;
  align-content: center;
}

.pp-team-row {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  min-height: 60px;
  align-items: center;
}

/* Uusi logoalue */
.pp-team-logo-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/*
 * Iso mutta huomaamaton valo.
 * Ei valkoista ympyrää eikä laatikkoa.
 */
.pp-team-logo-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 74px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,.48) 0%,
      rgba(255,255,255,.23) 35%,
      rgba(255,255,255,.08) 58%,
      transparent 76%
    );
  filter: blur(5px);
  opacity: .92;
  pointer-events: none;
}

.pp-team-logo {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;

  filter:
    drop-shadow(0 2px 2px rgba(0,0,0,.55))
    drop-shadow(0 0 2px rgba(255,255,255,.28));
}

/* Joukkueen nimi mahtuu paremmin */
.pp-team-name {
  font-size: 14px;
  line-height: 1.12;
  font-weight: 760;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.pp-vs {
  min-height: 25px;
  height: 25px;
  font-size: 13px;
  line-height: 25px;
}

/* Sarja-, lohko- ja kenttäalue tiiviimmäksi */
.pp-game-meta {
  flex: 1 1 auto;
  min-height: 105px;
  padding: 11px 16px 10px;
}

.pp-info {
  gap: 6px;
}

.pp-info-block {
  gap: 1px;
}

.pp-info-label {
  font-size: 9px;
  line-height: 1;
  margin-bottom: 1px;
}

.pp-info-value {
  font-size: 10.5px;
  line-height: 1.16;
}

/* Tulosalue matalammaksi */
.pp-game-bottom {
  flex: 0 0 68px;
  min-height: 68px;
  padding: 8px 16px 11px;
}

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

.pp-period-scores {
  gap: 9px;
}

.pp-period-score {
  font-size: 9px;
}

.pp-period-score strong {
  font-size: 11px;
}

/* Mobiili */
@media (max-width: 600px) {
  .pp-game-card {
    flex-basis: 84vw;
    min-height: 500px;
    height: 500px;
  }

  .pp-teams {
    flex-basis: 205px;
    min-height: 205px;
    padding-top: 15px;
    padding-bottom: 12px;
  }

  .pp-team-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

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

  .pp-team-logo-wrap::before {
    width: 72px;
    height: 56px;
  }

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

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

  .pp-game-meta {
    min-height: 105px;
  }
}

/* ======================================================
   v53 – korjaus: automaattinen korkeus, tiivis joukkuealue,
   ei koko karusellin varjolaattaa
   ====================================================== */

/* Koko elementin ja karusellin alta kaikki varjot pois */
.pesis-paivan-pelit,
.pp-games-list {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

.pp-games-list {
  align-items: flex-start !important;
  padding: 4px 4px 18px !important;
  margin: 0 !important;
  overflow-x: auto;
  overflow-y: visible;
}

.pp-games-list::before,
.pp-games-list::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Kortti ei käytä enää kiinteää korkeutta */
.pp-game-card {
  flex: 0 0 300px !important;
  width: 300px !important;
  height: auto !important;
  min-height: 0 !important;

  display: grid !important;
  grid-template-rows:
    44px
    72px
    auto
    auto
    auto !important;

  align-self: flex-start !important;
  overflow: hidden !important;

  /* Vain kortin oma kevyt varjo */
  box-shadow:
    0 3px 8px rgba(0,0,0,.12),
    0 8px 18px rgba(0,0,0,.09) !important;
}

.pp-game-card::before,
.pp-game-card::after {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.pp-game-card:hover {
  transform: none !important;
  box-shadow:
    0 4px 10px rgba(0,0,0,.14),
    0 10px 21px rgba(0,0,0,.10) !important;
}

/* Yläpalkki */
.pp-game-top {
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 15px !important;
}

/* Kellonaika */
.pp-game-time {
  min-height: 72px !important;
  height: 72px !important;
  padding: 0 !important;
  font-size: 30px !important;
}

/* Joukkuealue: tyhjä tila oikeasti pois */
.pp-teams {
  min-height: 0 !important;
  height: auto !important;
  flex: none !important;

  display: grid !important;
  grid-template-rows:
    minmax(54px, auto)
    22px
    minmax(54px, auto) !important;

  gap: 3px !important;
  align-content: start !important;

  padding: 12px 16px !important;
}

/* Yksi joukkue vie vain tarvitsemansa tilan */
.pp-team-row {
  min-height: 54px !important;
  height: auto !important;

  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  gap: 9px !important;
  align-items: center !important;
}

/* Logohehku leveämpi ja pehmeämpi, ei valkoista palloa */
.pp-team-logo-wrap {
  position: relative;
  width: 62px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  isolation: isolate;
}

.pp-team-logo-wrap::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: -1 !important;

  width: 82px !important;
  height: 48px !important;
  border-radius: 50% !important;

  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,.34) 0%,
    rgba(255,255,255,.15) 40%,
    rgba(255,255,255,.05) 62%,
    transparent 78%
  ) !important;

  filter: blur(7px) !important;
  opacity: .85 !important;
  pointer-events: none !important;
}

.pp-team-logo {
  width: 50px !important;
  height: 50px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;

  filter:
    drop-shadow(0 2px 3px rgba(0,0,0,.48))
    drop-shadow(0 0 2px rgba(255,255,255,.18)) !important;
}

/* Joukkueen nimi saa käyttää koko tilan */
.pp-team-name {
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;

  font-size: 14px !important;
  line-height: 1.13 !important;

  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

/* VS ei vie tarpeettomasti korkeutta */
.pp-vs {
  min-height: 22px !important;
  height: 22px !important;
  line-height: 22px !important;
  margin: 0 !important;
  font-size: 13px !important;
}

/* Tietoalue kasvaa sisällön mukaan */
.pp-game-meta {
  min-height: 0 !important;
  height: auto !important;
  flex: none !important;

  padding: 11px 15px 12px !important;
  overflow: visible !important;
}

.pp-info {
  gap: 6px !important;
}

.pp-info-block {
  min-height: 0 !important;
  height: auto !important;
}

.pp-info-label {
  font-size: 9px !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
}

.pp-info-value {
  font-size: 10.5px !important;
  line-height: 1.2 !important;

  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

/* Kentän pitkä nimi saa rivittyä */
.pp-stadium-link {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
}

/* Tulosalue ei leikkaa sisältöä */
.pp-game-bottom {
  min-height: 68px !important;
  height: auto !important;
  flex: none !important;
  margin: 0 !important;
  padding: 9px 15px 11px !important;
}

.pp-result {
  font-size: 34px !important;
}

/* Mobiili */
@media (max-width: 600px) {
  .pp-game-card {
    flex-basis: 84vw !important;
    width: 84vw !important;
    height: auto !important;
    min-height: 0 !important;
  }
}
