/* playragdollsoccer.com — street-pitch design system. Original look for this site only. */
:root {
  --pitch: #0E7A3D;
  --pitch-deep: #0B5C30;
  --pitch-ink: #0A4A26;
  --ink: #132017;
  --soft: #4C6355;
  --paper: #F7FBF8;
  --card: #FFFFFF;
  --line: #D9E7DE;
  --accent: #F59E2D;
  --accent-deep: #D07E12;
  --danger: #C4432B;
  --radius: 14px;
  --radius-big: 24px;
  --shadow-hard: 4px 4px 0 rgba(19, 32, 23, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

.shell { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar { background: var(--pitch-deep); border-bottom: 4px solid var(--pitch-ink); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: 0.2px; }
.ballmark { width: 22px; height: 22px; border-radius: 50%; background: #fff; position: relative; flex: none; }
.ballmark::after { content: ""; position: absolute; inset: 5px; background: var(--pitch-deep); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); border-radius: 3px; }
.ballmark.small { width: 18px; height: 18px; }
.ballmark.small::after { inset: 4px; background: var(--paper); }
.topnav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topnav .chip { color: #E8F4EC; text-decoration: none; font-weight: 600; font-size: 15px; padding: 7px 12px; border-radius: 999px; }
.topnav .chip:hover { background: rgba(255, 255, 255, 0.14); }
.topnav .cta, .bigcta { display: inline-block; background: var(--accent); color: var(--pitch-ink); font-weight: 800; text-decoration: none; padding: 8px 18px; border-radius: 999px; border: 3px solid var(--pitch-ink); box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); }
.topnav .cta:active, .bigcta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35); }

/* ---------- breadcrumb ---------- */
.crumbs { padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; font-size: 14px; color: var(--soft); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: var(--soft); }

/* ---------- hero / stage ---------- */
.hero { padding: 10px 0 26px; }
.hud h1 { margin: 14px 0 6px; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.5px; }
.lede { margin: 0 0 18px; color: var(--soft); max-width: 70ch; }
.stage-wrap { max-width: 880px; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--pitch-ink); border: 4px solid var(--ink); border-radius: var(--radius-big); overflow: hidden; box-shadow: var(--shadow-hard); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 40, 24, 0.55), rgba(10, 40, 24, 0.05) 55%); }
.gobtn { position: absolute; z-index: 2; left: 50%; bottom: 12%; transform: translateX(-50%); background: var(--accent); color: var(--pitch-ink); border: 4px solid var(--ink); border-radius: 999px; padding: 14px 30px; font-size: 20px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-hard); display: inline-flex; align-items: center; gap: 12px; }
.gobtn:hover { background: #FFB84D; }
.go-tri { width: 0; height: 0; border-left: 14px solid var(--pitch-ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.loader { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px; background: var(--pitch-ink); }
.loadtext { color: #DFF0E4; font-weight: 600; margin: 0; }
.bounceball { width: 46px; height: 46px; border-radius: 50%; background: #fff; position: relative; animation: flop 0.7s infinite cubic-bezier(0.3, 0, 0.4, 1); }
.bounceball::after { content: ""; position: absolute; inset: 13px; background: var(--pitch-ink); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); border-radius: 3px; }
@keyframes flop {
  0%, 100% { transform: translateY(0) scale(1.05, 0.9); }
  35% { transform: translateY(-34px) scale(0.94, 1.08); }
  70% { transform: translateY(0) scale(1.1, 0.85); }
}

/* engine state machine: hide cover while loading/playing, show loader while loading */
.stage[data-gf-state="loading"] .cover,
.stage[data-gf-state="playing"] .cover { display: none; }
.stage[data-gf-state="loading"] .loader { display: flex; }
.stage[data-gf-state="playing"] .loader { display: none; }

.stagebtns { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pillbtn { background: var(--card); border: 3px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 3px 3px 0 rgba(19, 32, 23, 0.75); }
.pillbtn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(19, 32, 23, 0.75); }
.pillbtn[aria-pressed="true"], .pillbtn.liked { background: var(--accent); }
.pillcount { font-weight: 800; font-variant-numeric: tabular-nums; }
.sharemsg { color: var(--pitch-deep); font-weight: 600; font-size: 14px; }

/* ---------- body grid: article + rail ---------- */
.bodygrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; padding: 8px 0 34px; }
.copy h2 { font-size: 25px; line-height: 1.25; margin: 34px 0 10px; letter-spacing: -0.3px; }
.copy h3 { font-size: 19px; margin: 24px 0 8px; }
.copy p { margin: 0 0 14px; }
.copy ul, .copy ol { margin: 0 0 14px; padding-left: 22px; }
.copy a { color: var(--pitch-deep); font-weight: 600; }
.copy img { max-width: 100%; height: auto; border-radius: var(--radius); border: 3px solid var(--line); }
.copy code { background: #EDF5EF; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; }
.copy blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 5px solid var(--accent); background: #FFF7EA; border-radius: 0 10px 10px 0; }
.copy table { border-collapse: collapse; width: 100%; margin: 0 0 16px; background: var(--card); }
.copy th, .copy td { border: 2px solid var(--line); padding: 8px 12px; text-align: left; }
.copy th { background: #E8F3EC; }

.railcard { background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius-big); padding: 20px; box-shadow: var(--shadow-hard); }
.stickynote { position: sticky; top: 16px; }
.railtitle { margin: 0 0 12px; font-size: 18px; border-bottom: 3px solid var(--accent); display: inline-block; padding-bottom: 4px; }
.quicklist { margin: 0; }
.quicklist dt { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--pitch-deep); margin-top: 12px; }
.quicklist dt:first-child { margin-top: 0; }
.quicklist dd { margin: 2px 0 0; font-size: 15px; }
.railplay { display: block; text-align: center; margin-top: 18px; background: var(--accent); color: var(--pitch-ink); font-weight: 800; text-decoration: none; padding: 12px 16px; border-radius: 999px; border: 3px solid var(--ink); box-shadow: 3px 3px 0 rgba(19, 32, 23, 0.75); }
.railplay:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(19, 32, 23, 0.75); }

/* ---------- FAQ ---------- */
.faqzone h2 { margin-top: 36px; }
.fold { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; }
.fold[open] { border-color: var(--pitch); }
.fold summary { cursor: pointer; font-weight: 700; padding: 12px 16px; list-style-position: inside; }
.fold summary:hover { background: #F1F8F3; border-radius: 11px; }
.fold p { padding: 0 16px 14px; margin: 0; }

/* ---------- comments ---------- */
.talk { background: #EFF7F1; border-top: 4px solid var(--pitch); padding: 26px 0 40px; }
.talk h2 { margin: 0 0 16px; }
.postbox { background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius-big); padding: 16px; max-width: 720px; box-shadow: var(--shadow-hard); display: grid; gap: 10px; }
.postbox input, .postbox textarea { font: inherit; border: 2px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; }
.postbox input:focus, .postbox textarea:focus { outline: 3px solid rgba(14, 122, 61, 0.35); border-color: var(--pitch); }
.postbox button { justify-self: start; background: var(--pitch); color: #fff; font-weight: 800; border: 3px solid var(--ink); border-radius: 999px; padding: 9px 24px; cursor: pointer; box-shadow: 3px 3px 0 rgba(19, 32, 23, 0.75); }
.postmsg { margin: 0; font-size: 14px; color: var(--soft); }
.wall { max-width: 720px; display: grid; gap: 12px; margin-top: 18px; }
.note { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.note header { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--soft); }
.note header b { color: var(--ink); font-size: 15px; }
.note footer { margin-top: 6px; display: flex; gap: 12px; align-items: center; }
.replylink { background: none; border: none; color: var(--pitch-deep); font-weight: 700; cursor: pointer; padding: 0; font-size: 14px; }
.ownertag { background: var(--accent); color: var(--pitch-ink); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.subnotes { margin-top: 10px; display: grid; gap: 8px; padding-left: 14px; border-left: 3px solid var(--line); }
.note.sub { background: #FBFDFC; }
.wall-empty { color: var(--soft); font-style: italic; }

/* ---------- 404 ---------- */
.goneoff { text-align: center; padding: 70px 0 90px; }
.offside { font-size: clamp(48px, 10vw, 90px); font-weight: 900; color: var(--accent); transform: rotate(-4deg); margin: 0; letter-spacing: 2px; }
.goneoff h1 { font-size: 26px; margin: 10px 0 6px; }
.goneoff p { color: var(--soft); }

/* ---------- footer ---------- */
.basebar { background: var(--pitch-deep); color: #DFF0E4; border-top: 4px solid var(--pitch-ink); margin-top: 30px; }
.basebar-in { display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; padding: 22px 20px; }
.basebrand { font-weight: 800; display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.basenav { display: flex; flex-wrap: wrap; gap: 14px; }
.basenav a { color: #CFE7D8; text-decoration: none; font-size: 14px; }
.basenav a:hover { color: #fff; text-decoration: underline; }
.basenote { width: 100%; margin: 4px 0 0; font-size: 13px; color: #9DC4AB; }

/* ---------- solo copy pages ---------- */
.copy-solo { max-width: 760px; padding: 6px 0 30px; }
.copy-legal h2 { font-size: 21px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bodygrid { grid-template-columns: 1fr; gap: 26px; }
  .stickynote { position: static; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .shell { padding: 0 14px; }
  .topbar-in { min-height: 54px; }
  .logo { font-size: 18px; }
  .topnav .chip { padding: 6px 9px; font-size: 13.5px; }
  .topnav .cta { padding: 7px 13px; font-size: 14px; }
  .topnav .chip[href="/about"] { display: none; }
  .gobtn { padding: 11px 22px; font-size: 17px; bottom: 8%; }
  .hud h1 { margin-top: 8px; }
  .pillbtn { padding: 7px 13px; font-size: 13.5px; }
  .basebar-in { padding: 18px 14px; }
}
