:root {
  --cream: #f4ead6;
  --gold: #c9a85a;
  --ice: #9fd8ff;
  --red: #9d1d1d;
  --ink: #06090d;
  --panel: rgba(7, 12, 18, 0.74);
  --line: rgba(244, 234, 214, 0.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  overflow-x: hidden;
}
.site-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.18) 45%, rgba(0,0,0,.68)),
    linear-gradient(180deg, rgba(0,0,0,.68), rgba(0,0,0,.18) 38%, rgba(0,0,0,.86)),
    url('Images/Background.png') center / cover no-repeat;
  z-index: -5;
}
.fog, .red-pulse { position: fixed; pointer-events: none; inset: 0; }
.fog { z-index: -3; opacity: .28; filter: blur(18px); }
.fog::before {
  content: '';
  position: absolute;
  width: 80vw;
  height: 38vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165,219,255,.36), transparent 66%);
}
.fog-a::before { left: -20vw; top: 42vh; animation: fogDrift 22s ease-in-out infinite alternate; }
.fog-b::before { right: -22vw; top: 18vh; animation: fogDriftReverse 28s ease-in-out infinite alternate; }
.red-pulse { z-index: -2; background: radial-gradient(circle at 87% 43%, rgba(161,20,20,.18), transparent 30%); animation: redPulse 4.8s ease-in-out infinite; }
.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 86px;
  padding: 14px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(5,8,12,.92), rgba(5,8,12,.42));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.publisher img { height: 56px; width: auto; display: block; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  opacity: .84;
  transition: opacity .2s, color .2s, text-shadow .2s;
}
.nav a:hover { opacity: 1; color: var(--ice); text-shadow: 0 0 18px rgba(159,216,255,.55); }
.nav-toggle { display: none; }
main { padding-top: 86px; }
.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 560px);
  align-items: center;
  gap: 34px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 70px;
}
.hero-copy {
  position: relative;
  text-align: center;
  padding: 44px 34px;
  background: radial-gradient(circle at 50% 0%, rgba(159,216,255,.12), transparent 45%), var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 0 70px rgba(0,0,0,.65), inset 0 0 40px rgba(159,216,255,.04);
}
.hero-copy::before { content: ''; position: absolute; inset: -1px; border: 1px solid rgba(201,168,90,.34); pointer-events: none; }
.game-banner { width: min(100%, 620px); filter: drop-shadow(0 0 22px rgba(201,168,90,.28)); }
.tagline {
  margin: 24px 0 10px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 0 14px rgba(159,216,255,.25), 0 4px 0 rgba(0,0,0,.8);
}
.hero-text { width: min(680px, 100%); margin: 0 auto 28px; font-size: 1.12rem; line-height: 1.7; color: rgba(244,234,214,.84); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  padding: 13px 24px;
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  border: 1px solid rgba(244,234,214,.3);
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 20px rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.35);
}
.cta.primary { background: linear-gradient(180deg, #ba2828, #671010); border-color: rgba(255,220,190,.34); text-shadow: 0 1px 0 rgba(0,0,0,.8); }
.cta.secondary { color: var(--ice); }
.cta.disabled { opacity: .72; cursor: default; }
.hero-art { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.hero-art img { width: min(96%, 520px); filter: drop-shadow(0 0 35px rgba(117,204,255,.28)); animation: floatGhost 5s ease-in-out infinite alternate; }
.ghost-glow { position: absolute; width: 410px; height: 410px; border-radius: 50%; background: radial-gradient(circle, rgba(78,186,255,.22), transparent 67%); filter: blur(10px); }
.content-section {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto 42px;
  padding: 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.42);
}
.section-title span, .carousel-heading span { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800; }
.section-title h2, .buy-section h2 { margin: 8px 0 18px; font-size: clamp(1.9rem, 3vw, 3.4rem); }
.content-section p { font-size: 1.08rem; line-height: 1.75; color: rgba(244,234,214,.82); }
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-row article { padding: 24px; min-height: 150px; background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.card-row h3 { margin-top: 0; color: var(--ice); }
.buy-section { text-align: center; }
.release-banner { max-width: min(100%, 760px); border-radius: 12px; box-shadow: 0 0 40px rgba(0,0,0,.4); }
.about-section { margin-bottom: 80px; }
footer { padding: 34px 24px 46px; text-align: center; background: rgba(0,0,0,.54); border-top: 1px solid var(--line); }
footer img { height: 50px; opacity: .9; }
footer p { margin: 12px 0 0; color: rgba(244,234,214,.65); font-size: .9rem; }
.centered { text-align: center; }
.section-intro { width: min(820px, 100%); margin: 0 auto 34px; text-align: center; }
.cards-section { width: min(1240px, calc(100% - 48px)); padding-left: 34px; padding-right: 34px; overflow: hidden; }
.coverflow-block {
  position: relative;
  margin: 42px 0 42px;
  padding: 34px 28px 36px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 40px rgba(255,255,255,.025), 0 22px 54px rgba(0,0,0,.32);
}
.coverflow-block::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.players-theme::before { background: radial-gradient(circle at 8% 20%, rgba(114,189,255,.22), transparent 36%); }
.grades-theme::before { background: radial-gradient(circle at 15% 20%, rgba(201,168,90,.20), transparent 36%); }
.ghosts-theme::before { background: radial-gradient(circle at 12% 15%, rgba(150,89,255,.22), transparent 38%); }
.plays-theme::before { background: radial-gradient(circle at 12% 18%, rgba(159,216,255,.18), transparent 34%); }
.chaos-theme::before { background: radial-gradient(circle at 14% 18%, rgba(210,20,20,.25), transparent 36%); animation: chaosFlicker 3.5s infinite; }
.coaches-theme::before { background: radial-gradient(circle at 12% 18%, rgba(160,110,70,.18), transparent 36%); }
.carousel-heading {
  position: relative;
  z-index: 2;
  display: block;
  width: min(860px, 100%);
  margin: 0 auto 55px;
  text-align: center;
}
.carousel-heading h3 { margin: 6px 0 12px; font-size: clamp(1.75rem, 2.8vw, 3rem); }
.carousel-heading p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(244,234,214,.78);
}
.grade-copy { position: relative; z-index: 2; width: min(820px, 100%); margin: -10px auto 30px; padding: 18px 22px; text-align: center; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.grade-copy h4 { margin: 0 0 4px; color: var(--ice); }
.grade-copy p { margin: 0; font-size: .98rem; }
.coverflow-shell {
  position: relative;
  z-index: 2;
  min-height: 660px;
  padding: 22px 76px 150px;
  perspective: 1300px;
}
.coverflow-stage {
  position: relative;
  height: 500px;
  transform-style: preserve-3d;
}
.cover-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 233px;
  height: 350px;
  margin-left: -116.5px;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.75,.18,1), opacity .45s ease, filter .45s ease, z-index .1s;
  cursor: pointer;
  user-select: none;
}
.cover-card img {
  width: 100%;
  aspect-ratio: 333 / 500;
  object-fit: cover;
  display: block;
  border-radius: 13px;
  border: 1px solid rgba(244,234,214,.22);
  box-shadow: 0 28px 56px rgba(0,0,0,.65), 0 0 26px rgba(159,216,255,.12);
  background: rgba(0,0,0,.35);
  -webkit-box-reflect: below 10px linear-gradient(transparent 74%, rgba(255,255,255,.12));
}
.cover-card h4, .cover-card p { display: none; }
.cover-card.is-active img { box-shadow: 0 34px 70px rgba(0,0,0,.72), 0 0 38px rgba(159,216,255,.26), 0 0 4px rgba(255,255,255,.35); }
.coverflow-btn {
  position: absolute;
  top: 250px;
  transform: translateY(-50%);
  z-index: 15;
  width: 52px;
  height: 72px;
  border: 1px solid rgba(244,234,214,.22);
  color: var(--cream);
  background: rgba(5,8,12,.68);
  box-shadow: 0 14px 32px rgba(0,0,0,.38), inset 0 0 18px rgba(255,255,255,.05);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.coverflow-btn:hover { color: var(--ice); border-color: rgba(159,216,255,.52); transform: translateY(-50%) scale(1.04); }
.coverflow-btn.prev { left: 10px; }
.coverflow-btn.next { right: 10px; }
.coverflow-caption {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(760px, calc(100% - 60px));
  transform: translateX(-50%);
  text-align: center;
  min-height: 112px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 0%, rgba(159,216,255,.10), transparent 50%), rgba(0,0,0,.35);
  border: 1px solid rgba(244,234,214,.16);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.coverflow-caption h4 { margin: 0 0 6px; font-size: 1.45rem; color: var(--ice); }
.coverflow-caption p { margin: 0; font-size: .98rem; line-height: 1.5; color: rgba(244,234,214,.78); }
.coverflow-caption strong { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
@keyframes fogDrift { from { transform: translateX(0) translateY(0); } to { transform: translateX(40vw) translateY(-5vh); } }
@keyframes fogDriftReverse { from { transform: translateX(0) translateY(0); } to { transform: translateX(-34vw) translateY(8vh); } }
@keyframes redPulse { 0%,100% { opacity: .35; } 50% { opacity: .82; } }
@keyframes floatGhost { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-16px) rotate(1deg); } }
@keyframes chaosFlicker { 0%, 100% { opacity: .38; } 8% { opacity: .68; } 10% { opacity: .25; } 12% { opacity: .72; } 58% { opacity: .45; } 60% { opacity: .82; } 64% { opacity: .35; } }
@media (max-width: 900px) {
  .topbar { height: auto; padding: 12px 20px; }
  .publisher img { height: 44px; }
  .nav-toggle { display: block; background: rgba(255,255,255,.08); color: var(--cream); border: 1px solid var(--line); font-size: 1.4rem; padding: 6px 12px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 24px; background: rgba(5,8,12,.95); flex-direction: column; align-items: flex-start; }
  .nav.open { display: flex; }
  main { padding-top: 69px; }
  .hero { grid-template-columns: 1fr; width: min(100% - 28px, 700px); }
  .hero-art { min-height: 340px; order: -1; }
  .hero-art img { width: min(80%, 360px); }
  .card-row { grid-template-columns: 1fr; }
  .content-section { width: calc(100% - 28px); padding: 28px; }
  .cards-section { width: calc(100% - 20px); padding: 24px 14px; }
  .carousel-heading { width: 100%; margin-bottom: 24px; }
  .carousel-heading p { margin: 0 auto; }
  .coverflow-block { padding: 22px 10px 28px; }
  .coverflow-shell { min-height: 590px; padding: 12px 40px 170px; }
  .coverflow-stage { height: 390px; }
  .cover-card { width: 186px; height: 279px; margin-left: -93px; }
  .coverflow-btn { top: 190px; width: 42px; height: 60px; font-size: 2.4rem; }
  .coverflow-caption { bottom: 14px; width: calc(100% - 24px); padding: 14px 16px; }
}
@media (max-width: 560px) {
  .coverflow-shell { min-height: 560px; padding-left: 18px; padding-right: 18px; padding-bottom: 190px; }
  .cover-card { width: 160px; height: 240px; margin-left: -80px; }
  .coverflow-stage { height: 330px; }
  .coverflow-btn { top: 164px; }
}


/* Player Grades: static four-card showcase, not a carousel */
.grades-showcase {
  padding-bottom: 34px;
}

.grades-showcase .carousel-heading {
  margin-bottom: 30px;
}

.grades-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.grade-card {
  margin: 0;
  padding: 0;
}

.grade-card img {
  width: 100%;
  aspect-ratio: 333 / 500;
  object-fit: cover;
  display: block;
  border-radius: 13px;
  border: 1px solid rgba(244,234,214,.22);
  box-shadow: 0 24px 50px rgba(0,0,0,.62), 0 0 24px rgba(201,168,90,.12);
  background: rgba(0,0,0,.35);
}

@media (max-width: 900px) {
  .grades-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(560px, 100%);
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .grades-grid {
    grid-template-columns: 1fr;
    width: min(250px, 100%);
  }
}


/* Flavor text: italic only, no spacing changes */
.coverflow-caption em{
  font-style: italic;
}


.overview-copy{
  text-align:center;
  max-width:900px;
  margin:0 auto;
}

.overview-copy p{
  text-align:center;
}




/* Overview alignment and compact description */
.overview-section .section-title{
  text-align:center;
}

.overview-copy{
  text-align:center;
  max-width:900px;
  margin:0 auto;
}

.overview-copy p{
  text-align:center;
  margin:0 auto;
  line-height:1.75;
}


/* Ghosts of Hockey title font */
.section-title h2,
.carousel-heading h3,
.buy-section h2,
.coverflow-caption h4{
  font-family:'Oswald', Arial, sans-serif;
  letter-spacing:.03em;
  font-weight:700;
}


/* Trailer section */
.trailer-section{
  text-align:center;
}

.trailer-section .section-title{
  margin-bottom:26px;
}

.trailer-frame{
  width:min(100%, 1100px);
  margin:0 auto;
  padding:10px;
  border-radius:18px;
  border:1px solid rgba(244,234,214,.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(159,216,255,.10), transparent 46%),
    rgba(0,0,0,.32);
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    0 0 30px rgba(159,216,255,.10);
}

.game-trailer{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  border:0;
  border-radius:12px;
  background:#000;
}

@media (max-width:700px){
  .trailer-frame{
    padding:6px;
    border-radius:14px;
  }

  .game-trailer{
    border-radius:9px;
  }
}


/* How To Play section */
.how-section{
  width:min(1240px, calc(100% - 48px));
}

.how-section .section-title{
  text-align:center;
}

.how-steps{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:28px;
  margin-top:34px;
  align-items:stretch;
}

.how-step{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:100%;
  padding:26px 24px 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(159,216,255,.08), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  border:1px solid var(--line);
  box-shadow:inset 0 0 34px rgba(255,255,255,.02), 0 18px 44px rgba(0,0,0,.28);
}

.how-step h3{
  margin:0 0 14px;
  color:var(--ice);
  font-family:'Oswald', Arial, sans-serif;
  font-size:clamp(1.35rem, 2vw, 1.95rem);
  line-height:1.15;
  text-align:center;
  letter-spacing:.035em;
  font-weight:700;
}

.how-step p{
  width:100%;
  margin:0 auto 22px;
  text-align:center;
  line-height:1.62;
  color:rgba(244,234,214,.82);
  font-size:1rem;
}

.screenshot-thumb{
  display:block;
  width:100%;
  margin:auto auto 0;
  padding:0;
  border:1px solid rgba(244,234,214,.22);
  border-radius:13px;
  background:rgba(0,0,0,.36);
  box-shadow:0 18px 42px rgba(0,0,0,.52), 0 0 22px rgba(159,216,255,.10);
  cursor:pointer;
  overflow:hidden;
  transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.screenshot-thumb:hover{
  transform:translateY(-3px) scale(1.012);
  border-color:rgba(159,216,255,.52);
  box-shadow:0 24px 56px rgba(0,0,0,.62), 0 0 30px rgba(159,216,255,.18);
}

.screenshot-thumb img{
  width:100%;
  height:auto;
  display:block;
}

.thumb-hint{
  display:block;
  margin-top:10px;
  text-align:center;
  color:rgba(244,234,214,.58);
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.image-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:32px;
  background:rgba(0,0,0,.86);
  backdrop-filter:blur(5px);
}

.image-lightbox.open{
  display:flex;
}

.image-lightbox img{
  max-width:min(96vw, 1600px);
  max-height:88vh;
  width:auto;
  height:auto;
  border-radius:12px;
  border:1px solid rgba(244,234,214,.24);
  box-shadow:0 30px 90px rgba(0,0,0,.8);
}

.lightbox-close{
  position:absolute;
  top:20px;
  right:26px;
  width:48px;
  height:48px;
  border:1px solid rgba(244,234,214,.28);
  border-radius:50%;
  color:var(--cream);
  background:rgba(5,8,12,.72);
  font-size:2rem;
  line-height:1;
  cursor:pointer;
}

.lightbox-close:hover{
  color:var(--ice);
  border-color:rgba(159,216,255,.55);
}

@media (max-width:900px){
  .how-section{
    width:calc(100% - 28px);
  }

  .how-steps{
    grid-template-columns:1fr;
    gap:28px;
  }

  .how-step{
    padding:24px 16px 28px;
  }

  .how-step p{
    font-size:1.02rem;
  }
}

@media (max-width:700px){
  .image-lightbox{
    padding:16px;
  }

  .lightbox-close{
    top:12px;
    right:12px;
  }
}




/* Overview top image */
.overview-top-image{
  display:flex;
  justify-content:center;
  margin-top:40px;
}

.overview-top-image img{
  width:min(100%, 1100px);
  height:auto;
  border-radius:14px;
  border:1px solid rgba(244,234,214,.18);
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    0 0 30px rgba(159,216,255,.10);
}

@media (max-width:700px){
  .overview-top-image img{
    width:100%;
  }
}


/* Bottom sections update */
.buy-section .release-banner{
  display:block;
  margin:0 auto 26px;
}

.about-section{
  text-align:center;
  margin-bottom:80px;
}

.about-banner{
  display:block;
  width:min(100%, 760px);
  height:auto;
  margin:0 auto 30px;
  border-radius:12px;
  box-shadow:0 0 40px rgba(0,0,0,.4);
}

.about-copy{
  width:min(820px, 100%);
  margin:0 auto;
  text-align:center;
}

.about-copy p{
  text-align:center;
  margin:0 auto 18px;
}

.about-links{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-top:26px;
}

.contact-link{
  color:var(--ice);
  text-decoration:none;
  font-weight:700;
  letter-spacing:.03em;
  text-shadow:0 0 16px rgba(159,216,255,.28);
}

.contact-link:hover{
  color:var(--cream);
  text-shadow:0 0 22px rgba(159,216,255,.55);
}

.social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:48px;
  padding:10px 18px;
  color:var(--cream);
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.10em;
  font-family:'Oswald', Arial, sans-serif;
  font-weight:700;
  border:1px solid rgba(244,234,214,.26);
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 0 18px rgba(255,255,255,.04), 0 12px 30px rgba(0,0,0,.34);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.social-link:hover{
  transform:translateY(-2px);
  border-color:rgba(159,216,255,.55);
  box-shadow:inset 0 0 18px rgba(255,255,255,.05), 0 16px 36px rgba(0,0,0,.42), 0 0 24px rgba(159,216,255,.16);
}

.social-icon{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#ffffff;
  background:#1877f2;
  font-family:Arial, sans-serif;
  font-size:1.35rem;
  font-weight:900;
  line-height:1;
}

@media (max-width:560px){
  .social-link{
    width:100%;
    max-width:320px;
  }
}


/* Mobile-only fixes: preserve desktop layout */
@media (max-width:700px){
  .overview-top-image{
    margin-top:24px;
  }

  .overview-top-image img{
    width:min(86%, 520px);
    border-radius:10px;
  }

  .about-banner{
    width:min(82%, 420px);
    margin-bottom:22px;
  }

  .about-links{
    width:100%;
    gap:12px;
  }

  .contact-link{
    display:block;
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
    font-size:.94rem;
    line-height:1.35;
  }

  .social-link{
    width:100%;
    max-width:300px;
    padding:10px 12px;
    gap:10px;
    letter-spacing:.07em;
    font-size:.92rem;
    white-space:normal;
    text-align:center;
  }

  footer img{
    height:34px;
    max-width:78%;
  }

  footer p{
    font-size:.78rem;
    line-height:1.45;
  }
}

@media (max-width:560px){
  .grades-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    width:min(430px, 100%);
    gap:12px;
  }

  .grade-card img{
    border-radius:10px;
  }
}

@media (max-width:390px){
  .grades-grid{
    gap:10px;
  }

  .social-link{
    max-width:280px;
    font-size:.86rem;
  }
}
