/* Play Rescue ApS: the studio's site. The game's brand (Rescue Wars' navy, gold and cream; Fredoka and Inter, the same
   files as rescuewarsonline.com). Phone first; the PC's own layout is in the min-width: 900px block at the end. */

@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night-deep: #061430;
  --night: #0a1f45;
  --royal: #1f4fa3;
  --royal-hi: #3b74d6;
  --royal-rim: #5d8ee0;
  --gold: #f4cb66;
  --gold-rim: #ffe6a3;
  --gold-deep: #e0a530;
  --cream: #fff3d9;
  --cream-soft: #fff9ee;
  --cream-line: #ecdcb8;
  --royal-tint: #e4edfb;
  --ink: #092c43;
  --ink-soft: #3a5468;
  --text: #f2f9ff;
  --muted: #b7d3dc;
  --display: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
  --nav-h: 64px;
  --radius: 16px;
  --shadow-sm: 0 2px 6px rgba(6, 20, 48, 0.08);
  --shadow-md: 0 10px 28px rgba(6, 20, 48, 0.14);
  --shadow-lg: 0 22px 60px rgba(6, 20, 48, 0.32);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night-deep); color: var(--text); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0.005em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-rim); outline-offset: 3px; border-radius: 6px; }

/* Header: the studio's navy glass */
.top { position: sticky; top: 0; z-index: 20; height: var(--nav-h); background: rgba(6, 20, 48, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(93, 142, 224, 0.18); }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); padding: 10px 12px; border-radius: 10px;
  transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--text); background: rgba(93, 142, 224, 0.14); }
.nav .page-link { display: none; }
.lang { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid rgba(244, 203, 102, 0.55);
  color: var(--gold) !important; padding: 8px 14px !important; border-radius: 999px !important; }
.lang:hover { background: rgba(244, 203, 102, 0.12) !important; border-color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 14px; font: 700 16px/1.2 var(--body); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: linear-gradient(180deg, var(--gold-rim) 0%, var(--gold) 38%, var(--gold-deep) 100%); color: var(--ink);
  box-shadow: 0 2px 0 #b9831f, 0 10px 24px rgba(224, 165, 48, 0.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 4px 0 #b9831f, 0 16px 32px rgba(224, 165, 48, 0.36); }
.btn-ghost { border: 2px solid rgba(242, 249, 255, 0.28); color: var(--text); }
.btn-ghost:hover { border-color: rgba(242, 249, 255, 0.6); background: rgba(242, 249, 255, 0.08); transform: translateY(-2px); }
.btn-royal { background: linear-gradient(180deg, var(--royal-hi), var(--royal)); color: #fff; box-shadow: 0 2px 0 #163a7a, var(--shadow-md); }
.btn-royal:hover { transform: translateY(-2px); box-shadow: 0 4px 0 #163a7a, var(--shadow-lg); }

.pill { display: inline-block; font: 600 13px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 14px;
  border-radius: 999px; background: rgba(244, 203, 102, 0.14); color: var(--gold); border: 1px solid rgba(244, 203, 102, 0.32); }
.light .pill { background: var(--royal-tint); color: var(--royal); border-color: rgba(31, 79, 163, 0.18); }

/* Hero: the intro's backdrop, a glow over deep navy */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px;
  background: radial-gradient(ellipse 80% 60% at 30% 35%, rgba(59, 116, 214, 0.42), transparent 70%),
              radial-gradient(ellipse 60% 50% at 90% 10%, rgba(31, 79, 163, 0.5), transparent 70%),
              linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 203, 102, 0.45), transparent); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin-top: 18px; font-size: clamp(34px, 9vw, 64px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-copy > p { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 34em; }
.actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn { flex: 1 1 200px; }
.hero-art { position: relative; margin-top: 36px; }
.frame { position: relative; border-radius: 20px; overflow: hidden; border: 3px solid rgba(255, 230, 163, 0.75);
  box-shadow: 0 0 0 6px rgba(10, 31, 69, 0.9), var(--shadow-lg); background: var(--night); }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tag { position: absolute; left: 12px; bottom: 12px; font: 600 13px/1 var(--body); padding: 8px 12px; border-radius: 999px;
  background: rgba(6, 20, 48, 0.82); color: var(--text); border: 1px solid rgba(93, 142, 224, 0.4); }
.paw-float { display: none; }

/* Light sections */
.light { background: var(--cream-soft); color: var(--ink); }
.light p { color: var(--ink-soft); }
section { padding: 64px 0; }
.head h2 { margin-top: 14px; font-size: clamp(28px, 7vw, 44px); }
.head p { margin-top: 12px; font-size: 18px; max-width: 38em; }

.game-logo { width: min(320px, 78%); margin: 4px 0 0 -6px; filter: drop-shadow(0 10px 18px rgba(6, 20, 48, 0.22)); }
.points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: point; }
.points li { position: relative; background: #fff; border: 1px solid var(--cream-line); border-radius: var(--radius); padding: 20px 20px 20px 72px;
  box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; counter-increment: point; }
.points li::before { content: counter(point); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font: 700 20px/1 var(--display); color: var(--ink);
  background: linear-gradient(180deg, var(--gold-rim), var(--gold) 45%, var(--gold-deep)); box-shadow: 0 2px 0 #b9831f; }
.points li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.points h3 { font-size: 21px; color: var(--ink); }
.points p { margin-top: 6px; }

.shots { margin: 36px 0 0; display: grid; gap: 14px; }
.shots figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--night); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s; }
.shots figure:hover img { transform: scale(1.04); }
.shots figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font: 600 15px/1.3 var(--body); color: #fff;
  background: linear-gradient(0deg, rgba(6, 20, 48, 0.85), transparent); }

.status { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 20px;
  background: linear-gradient(135deg, var(--night) 0%, #12306a 100%); color: var(--text); box-shadow: var(--shadow-lg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 14px/1 var(--body); padding: 9px 12px; border-radius: 999px; background: rgba(93, 142, 224, 0.18);
  border: 1px solid rgba(93, 142, 224, 0.38); color: var(--text); }
.chip.live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #6fe08c;
  box-shadow: 0 0 0 3px rgba(111, 224, 140, 0.25); vertical-align: 1px; }
.status .btn { width: 100%; }

/* About: dark again */
.about { background: linear-gradient(180deg, var(--night-deep), var(--night)); }
.about-grid { display: grid; gap: 28px; }
.about .head p { color: var(--muted); }
.about .head p + p { margin-top: 14px; }
.photo { border-radius: 20px; overflow: hidden; border: 3px solid rgba(255, 230, 163, 0.55); box-shadow: var(--shadow-lg); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.textlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 44px; font-weight: 700; color: var(--gold);
  text-decoration: none; border-bottom: 2px solid rgba(244, 203, 102, 0.35); transition: border-color 0.2s, gap 0.2s; }
.textlink:hover { border-color: var(--gold); gap: 12px; }
.textlink svg { width: 18px; height: 18px; }

/* Contact and the company's details */
.contact-grid { display: grid; gap: 24px; margin-top: 28px; }
.mail { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--cream-line); box-shadow: var(--shadow-sm); }
.mail h3 { font-size: 22px; color: var(--ink); }
.mail .btn { width: 100%; word-break: break-all; }
.facts { margin: 0; padding: 24px; border-radius: 20px; background: var(--cream); border: 1px solid var(--cream-line); display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px dashed var(--cream-line); }
.facts div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt { font: 600 13px/1.2 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; font: 600 18px/1.35 var(--display); color: var(--ink); }
.facts a { text-decoration-color: rgba(31, 79, 163, 0.35); text-underline-offset: 3px; }

/* Footer */
.foot { background: var(--night-deep); border-top: 1px solid rgba(93, 142, 224, 0.18); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-direction: column; gap: 16px; }
.foot img { width: 140px; opacity: 0.95; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* The PC's own layout: a wide header with the page's links, a split hero, two-by-two points, three pictures in a row,
   the photo beside the story, and the email beside the company's details. */
@media (min-width: 900px) {
  :root { --gutter: 32px; --nav-h: 76px; }
  .brand img { width: 190px; }
  .nav { gap: 4px; }
  .nav .page-link { display: inline-flex; }
  .lang { margin-left: 10px; }
  .hero { padding: 88px 0 104px; }
  .hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
  .hero-copy > p { font-size: 20px; }
  .actions .btn { flex: 0 0 auto; padding: 14px 26px; }
  .hero-art { margin-top: 0; }
  .frame { transform: rotate(1.6deg); transition: transform 0.4s; }
  .frame:hover { transform: rotate(0deg) scale(1.01); }
  .paw-float { display: block; position: absolute; width: 92px; right: -26px; top: -46px; transform: rotate(16deg);
    filter: drop-shadow(0 10px 20px rgba(6, 20, 48, 0.5)); }
  section { padding: 104px 0; }
  .game-top { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: end; }
  .game-logo { width: 100%; margin: 0; }
  .points { grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
  .points li { padding: 26px 26px 26px 84px; }
  .points li::before { left: 24px; top: 24px; width: 42px; height: 42px; }
  .points h3 { font-size: 23px; }
  .shots { grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
  .shots figure:not(:first-child) img { aspect-ratio: auto; height: 100%; }
  .status { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 26px; }
  .status .btn { width: auto; }
  .about-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
  .photo { transform: rotate(-1.4deg); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 28px; margin-top: 40px; align-items: start; }
  .mail { padding: 32px; }
  .mail .btn { width: auto; align-self: flex-start; }
  .facts { padding: 28px 32px; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .facts div:nth-last-child(-n+2) { padding-bottom: 0; border-bottom: 0; }
  .foot .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}
