/* ABCPLAY · portal.css
 * Forsidens udseende: farver, afstande, spiloversigt og mobilvisning.
 * .navn vælger en CSS-klasse; #navn vælger et HTML-id.
 * @media tilpasser udseendet til bestemte skærmstørrelser.
 */

.alienart {
  background: radial-gradient(ellipse at 50% 35%, #34506c, #142236);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.alienart > span {
  font: 52px/1 system-ui;
  color: #9bd6c3;
}
.alienart > div {
  display: flex;
  gap: 8px;
}
.alienart i {
  display: block;
  width: 10px;
  height: 10px;
  background: #98cebb;
  border-radius: 50%;
  box-shadow: 0 0 14px #98cebb66;
}
.alienart i:nth-child(2) {
  background: #e6ac9b;
  box-shadow: 0 0 14px #e6ac9b66;
}
.alienart small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #b1c5d3;
}
.poolart {
  background: radial-gradient(ellipse at center, #2f7354, #123a2b);
}
.pool-mini {
  width: 165px;
  height: 83px;
  border: 9px solid #6e5033;
  border-radius: 17px;
  outline: 1px solid #c3a16c;
  background: #237553;
  position: relative;
  box-shadow: 0 8px 18px #0005;
  transform: rotate(-7deg);
}
.pool-mini i {
  position: absolute;
  left: 70px;
  top: 24px;
  background: #17201c;
  color: #f4f0dc;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font: 700 13px/25px system-ui;
  text-align: center;
  font-style: normal;
  box-shadow: 2px 3px 3px #0006;
}
.pool-mini b {
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #eee9cf;
  left: 25px;
  top: 18px;
  box-shadow: 2px 3px 3px #0006;
}
.pool-mini span {
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: linear-gradient(#f2ead1 25%, #dca640 26%, #dca640 73%, #f2ead1 74%);
  left: 105px;
  top: 10px;
  box-shadow: 2px 3px 3px #0006;
}
:root {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: #f9f6ed;
  background: #091f1b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 65% 0, #1d5b43, #091f1b 65%);
  min-height: 100vh;
}
.wrap {
  max-width: 1080px;
  margin: auto;
  padding: 22px clamp(16px, 4vw, 48px);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 24px;
}
.brand span {
  color: #d8b874;
}
.tag {
  color: #a5c5b8;
  font-size: 13px;
}
.hero {
  padding: 70px 0 42px;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 11px;
  color: #c4b080;
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 14px 0;
}
.hero em {
  color: #d9b876;
  font-style: normal;
}
.hero p {
  max-width: 540px;
  color: #bbd0c6;
  line-height: 1.6;
}
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.game {
  text-decoration: none;
  color: inherit;
  background: #173e33;
  border: 1px solid #ffffff26;
  border-radius: 20px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.game:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px #0006;
}
.art {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.solitaire {
  background: radial-gradient(circle, #317857, #164632);
}
.thirty {
  background: radial-gradient(circle, #54745d, #183f39);
}
.mini {
  background: #fffdf5;
  color: #182b26;
  border: 2px solid #ddd5c6;
  border-radius: 10px;
  width: 106px;
  height: 152px;
  padding: 10px;
  font-size: 32px;
  font-weight: 800;
  box-shadow: 0 12px 25px #0006;
  transform: rotate(-13deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mini span {
  font-size: 60px;
  text-align: center;
}
.overlap {
  margin-left: -34px;
  transform: rotate(12deg);
  color: #c33237;
}
.overlap2 {
  margin-left: -38px;
  transform: rotate(25deg);
  color: #c33237;
}
.thirty .mini:first-child {
  color: #c33237;
}
.info {
  padding: 25px;
}
.info h2 {
  font-size: 30px;
  margin: 8px 0;
}
.info p {
  color: #c5d6cb;
  line-height: 1.6;
  min-height: 55px;
}
.play {
  color: #f4d28b;
  font-weight: 800;
}
footer {
  padding: 45px 0;
  color: #a7beb4;
  font-size: 12px;
} /* Tilpasning til skærmstørrelse eller skærmretning. */
@media (max-width: 650px) {
  .games {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 28px;
  }
  .art {
    height: 175px;
  }
  .mini {
    transform: scale(0.85) rotate(-13deg);
  }
  .mini.overlap {
    transform: scale(0.85) rotate(12deg);
  }
  .mini.overlap2 {
    transform: scale(0.85) rotate(25deg);
  }
}
.blackjack {
  background: radial-gradient(circle, #4e785b, #173e39);
}
.unoart {
  background: radial-gradient(circle, #b54d3f, #5b262b);
}
.unoart .mini:first-child {
  background: #e8b83d;
  color: #fff;
}
.unoart .mini.overlap {
  background: #3989c3;
  color: white;
}
.fivehundred {
  background: radial-gradient(circle, #497c66, #1a4540);
}

/* Forside: fire spil pr. række på store skærme. */
.wrap {
  max-width: 1480px;
}
.games {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.art {
  height: 165px;
}
.mini {
  width: 76px;
  height: 110px;
  font-size: 23px;
  padding: 8px;
  border-radius: 8px;
}
.mini span {
  font-size: 42px;
}
.overlap {
  margin-left: -26px;
}
.overlap2 {
  margin-left: -29px;
}
.info {
  padding: 18px;
}
.info h2 {
  font-size: 25px;
}
.info p {
  font-size: 14px;
  min-height: 90px;
}
.info .eyebrow {
  font-size: 10px;
}
/* Tilpasning til skærmstørrelse eller skærmretning. */
@media (min-width: 651px) and (max-width: 1050px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .art {
    height: 185px;
  }
  .info p {
    min-height: 60px;
  }
}
/* Tilpasning til skærmstørrelse eller skærmretning. */
@media (max-width: 650px) {
  .games {
    grid-template-columns: 1fr;
  }
  .art {
    height: 175px;
  }
  .info p {
    min-height: 0;
  }
}

/* ABCPLAY forside 2026: navigation, kort og regler */
a {
  color: inherit;
}
.site-header {
  padding: 8px 0;
}
.brand {
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.site-nav a,
footer a {
  color: #f1d58f;
  text-decoration: none;
  font-weight: 700;
}
.site-nav a {
  padding: 9px 12px;
  border: 1px solid #ffffff2b;
  border-radius: 10px;
}
.site-nav a:hover,
.secondary-action:hover {
  background: #ffffff18;
}
.hero {
  padding: 54px 0 40px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 70px);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}
.primary-action {
  background: #f1d58f;
  color: #18362b;
}
.secondary-action {
  border: 1px solid #f1d58f;
  color: #f1d58f;
}
.catalogue {
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin: 14px 0 20px;
}
.section-heading h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 6px 0;
}
.section-heading p {
  color: #bbd0c6;
}
.game {
  display: flex;
  flex-direction: column;
}
.game-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.game-main .info {
  flex: 1;
}
.info h3 {
  font-size: 25px;
  margin: 8px 0;
}
.game-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 16px;
}
.game-footer a {
  font-size: 13px;
  border: 1px solid #e9cc8e75;
  color: #f1d58f;
  border-radius: 9px;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: 750;
}
.game-footer a:hover {
  background: #ffffff18;
}
.game:focus-within {
  outline: 2px solid #f1d58f;
  outline-offset: 3px;
}
.yatzyart {
  background: radial-gradient(circle, #5d8063, #183f39);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
} /* Tilpasning til skærmstørrelse eller skærmretning. */
@media (max-width: 650px) {
  .site-header {
    align-items: flex-start;
  }
  .site-nav {
    justify-content: flex-end;
  }
  .hero {
    padding: 38px 0 26px;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-top: 0;
  }
  .game-footer {
    padding-bottom: 14px;
  }
}

/* ABCPLAY 2026: kompakt, responsivt spilkatalog. Ingen ekstra CSS-fil. */
:root {
  color-scheme: dark;
}
body {
  background: radial-gradient(ellipse at 55% -12%, #326d51 0, #143e32 35%, #081d1a 86%);
}
.wrap {
  max-width: 1320px;
  padding: 24px clamp(16px, 3vw, 42px);
}
.site-header {
  padding: 10px 0 14px;
  border-bottom: 1px solid #ffffff1c;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 25px;
  letter-spacing: 1px;
}
.hero {
  position: relative;
  padding: 46px 0 32px;
  max-width: 780px;
}
.hero:before {
  content: "♣";
  position: absolute;
  right: -18%;
  top: -24px;
  font-size: 170px;
  line-height: 1;
  color: #ffffff06;
  pointer-events: none;
  transform: rotate(-16deg);
}
.hero h1 {
  font-size: clamp(37px, 5.5vw, 65px);
  letter-spacing: -1.8px;
  margin: 10px 0 14px;
}
.hero p {
  font-size: 16px;
  margin: 0;
  color: #c5ddd1;
  max-width: 580px;
}
.catalogue {
  padding-top: 8px;
}
.section-heading {
  margin: 0 0 18px;
  align-items: end;
}
.section-heading h2 {
  font-size: clamp(24px, 3vw, 31px);
  margin: 5px 0 0;
}
.section-heading p {
  margin: 0 0 3px;
  font-size: 13px;
}
.games {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.game {
  position: relative;
  background: linear-gradient(160deg, #214d3e, #14382f);
  border: 1px solid #ffffff24;
  border-radius: 16px;
  box-shadow: 0 8px 20px #0002;
  min-width: 0;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.game:hover {
  transform: translateY(-4px);
  border-color: #e9c98375;
  box-shadow: 0 14px 30px #0005;
}
.game-main {
  min-width: 0;
}
.art {
  position: relative;
  height: 126px;
  border-bottom: 1px solid #ffffff18;
}
.art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff09, transparent 70%);
  pointer-events: none;
}
.art .mini {
  width: 63px;
  height: 88px;
  font-size: 19px;
  padding: 6px;
  border-radius: 7px;
  box-shadow: 0 7px 15px #0005;
  transform: rotate(-11deg);
}
.art .mini span {
  font-size: 34px;
}
.art .mini.overlap {
  margin-left: -20px;
  transform: rotate(10deg);
}
.art-label {
  position: absolute;
  top: 10px;
  left: 11px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: #fff8d5;
  background: #0004;
  border: 1px solid #ffffff35;
  border-radius: 6px;
  padding: 4px 7px;
}
.info {
  padding: 15px 15px 11px;
}
.info .eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  line-height: 1.5;
  min-height: 27px;
  color: #e5c98c;
}
.info h3 {
  font-size: 21px;
  line-height: 1.18;
  margin: 5px 0 7px;
  letter-spacing: -0.4px;
}
.info p {
  font-size: 12.5px;
  line-height: 1.5;
  min-height: 58px;
  margin: 0 0 12px;
  color: #c4d7cc;
}
.play {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  color: #f3d796;
}
.game-footer {
  padding: 0 12px 12px;
  margin-top: auto;
}
.game-footer:empty {
  display: none;
}
.game-footer a {
  display: block;
  width: 100%;
  text-align: center;
  background: #e7ca85;
  color: #1d392c;
  border: 1px solid #e7ca85;
  border-radius: 9px;
  padding: 9px 7px;
  font-size: 12px;
  font-weight: 800;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.game-footer a:hover {
  background: #f8df9d;
  transform: translateY(-1px);
}
.game:focus-within {
  outline: 2px solid #e7ca85;
  outline-offset: 3px;
}
footer {
  margin-top: 15px;
  border-top: 1px solid #ffffff1c;
  padding: 24px 0 18px;
}
/* Tilpasning til skærmstørrelse eller skærmretning. */
@media (max-width: 1160px) {
  .games {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* Tilpasning til skærmstørrelse eller skærmretning. */
@media (max-width: 880px) {
  .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .info p {
    min-height: 58px;
  }
}
/* Tilpasning til skærmstørrelse eller skærmretning. */
@media (max-width: 650px) {
  .wrap {
    padding: 16px;
  }
  .hero {
    padding: 32px 0 24px;
  }
  .hero:before {
    right: 0;
    font-size: 100px;
  }
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .art {
    height: 108px;
  }
  .art .mini {
    width: 52px;
    height: 75px;
    font-size: 17px;
  }
  .art .mini span {
    font-size: 29px;
  }
  .info {
    padding: 12px 10px 9px;
  }
  .info .eyebrow {
    font-size: 8px;
    min-height: 36px;
  }
  .info h3 {
    font-size: 18px;
  }
  .info p {
    font-size: 11.5px;
    min-height: 70px;
  }
  .game-footer {
    padding: 0 8px 9px;
  }
  .game-footer a {
    font-size: 11px;
    padding: 9px 4px;
  }
  .section-heading p {
    display: none;
  }
}
/* Tilpasning til skærmstørrelse eller skærmretning. */
@media (max-width: 380px) {
  .games {
    grid-template-columns: 1fr;
  }
  .art {
    height: 120px;
  }
  .info .eyebrow,
  .info p {
    min-height: 0;
  }
}
/* Tilpasning til skærmstørrelse eller skærmretning. */
@media (prefers-reduced-motion: reduce) {
  .game,
  .game-footer a {
    transition: none;
  }
}

/* Ludo i spiloversigten: et lille bræt bygget direkte med CSS. */
.ludoart {
  background: radial-gradient(circle, #4f795a, #193e31);
}
.ludo-mini {
  position: relative;
  width: 98px;
  height: 98px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px;
  background: #f0e6c9;
  border-radius: 12px;
  transform: rotate(-9deg);
  box-shadow: 0 8px 18px #0005;
}
.ludo-mini i {
  border-radius: 5px;
  background: #d84b51;
}
.ludo-mini i:nth-child(2) {
  background: #298f72;
}
.ludo-mini i:nth-child(3) {
  background: #497bd2;
}
.ludo-mini i:nth-child(4) {
  background: #e8b843;
}
.ludo-mini b {
  position: absolute;
  inset: 29px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fff9e8;
  color: #244b36;
  font-size: 35px;
  box-shadow: 0 3px 5px #0004;
}
.navyart {
  background: radial-gradient(ellipse at 50% 40%, #386f78, #123c46);
}
.navy-mini {
  width: 180px;
  height: 120px;
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, #9ac2bf20 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, #9ac2bf20 23px 24px);
  transform: rotate(-9deg);
}
.navy-mini i {
  position: absolute;
  height: 20px;
  width: 120px;
  left: 14px;
  top: 14px;
  background: #b2c3b6;
  border: 2px solid #e5e6cc;
  border-radius: 30% 80% 80% 30%;
  box-shadow: 0 5px 10px #0005;
}
.navy-mini i:nth-child(2) {
  width: 90px;
  top: 50px;
  left: 35px;
  background: #789a9a;
  border-radius: 50px;
}
.navy-mini i:nth-child(3) {
  width: 60px;
  top: 88px;
  left: 10px;
}
.navy-mini b {
  position: absolute;
  right: 0;
  bottom: 4px;
  color: #edcf8a;
  font:
    65px Georgia,
    serif;
}
.connectart {
  background: radial-gradient(ellipse at 50% 40%, #467a61, #153e31);
}
.connect-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  background: #366d5c;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  transform: rotate(-8deg);
  box-shadow: 0 8px 20px #0004;
}
.connect-mini i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #163e32;
  box-shadow: inset 0 2px 4px #0007;
}
.connect-mini i:nth-child(n + 9) {
  background: #edcf8a;
}
.connect-mini i:nth-child(3),
.connect-mini i:nth-child(6) {
  background: #db656a;
}
.snydart {
  background: radial-gradient(ellipse at 50% 35%, #836b46, #253f30);
  gap: 18px;
}
.snyd-mini-cup {
  width: 76px;
  height: 96px;
  background: linear-gradient(100deg, #775237, #d0a174 35%, #775237);
  clip-path: polygon(5% 0, 95% 0, 85% 90%, 70% 100%, 30% 100%, 15% 90%);
  border-radius: 12px;
  transform: rotate(-14deg);
  box-shadow: inset -10px 0 20px #0005;
}
.snydart > span {
  font-size: 46px;
  color: #f6e4b8;
  transform: rotate(12deg);
}
.ordart {
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(circle at 50% 30%, #327058, #123c30);
}
.ord-mini {
  display: flex;
  gap: 5px;
}
.ord-mini span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 43px;
  border-radius: 8px;
  background: #187860;
  border: 1px solid #93d3ad;
  color: #fff7d5;
  font: 700 20px system-ui;
}
.ord-mini span:nth-child(2n) {
  background: #b58d32;
  border-color: #f1d58f;
}
.ordart small {
  font: 600 10px system-ui;
  color: #e4d39c;
  letter-spacing: 2px;
}
.damart {
  background: radial-gradient(circle, #3e644f, #12372a);
}
.dam-mini {
  display: grid;
  grid-template-columns: repeat(3, 45px);
  border: 5px solid #79623f;
  transform: rotate(-8deg);
  box-shadow: 0 8px 18px #0005;
}
.dam-mini i {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: #ead7ac;
  font-style: normal;
  font-size: 24px;
  color: #f4dda2;
}
.dam-mini i:nth-child(2n) {
  background: #355449;
}
.dam-mini i:nth-child(1):after,
.dam-mini i:nth-child(8):after {
  content: "";
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #b64444;
  border: 2px solid #fff5;
  box-shadow: 0 3px 0 #0005;
}
.dam-mini i:nth-child(8):after {
  background: #efe7c9;
}
/* Søgning, kombinerbare kategorier og grupper. Filtre står i normal sideflow på mobil. */
.catalogue-tools {
  padding: 20px;
  margin: 20px 0 12px;
  border: 1px solid #ffffff26;
  border-radius: 18px;
  background: #143b30;
}
.catalogue-search label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}
.catalogue-search input {
  width: 100%;
  max-width: 620px;
  box-sizing: border-box;
  min-height: 48px;
  background: #0b2a22;
  border: 1px solid #8daa9b;
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff8e5;
  font: 16px system-ui;
}
.catalogue-search input::placeholder {
  color: #adc6b9;
  opacity: 1;
}
.catalogue-search input:focus-visible,
.catalogue-tools button:focus-visible,
.catalogue-category-links a:focus-visible {
  outline: 3px solid #f1d58f;
  outline-offset: 3px;
}
.catalogue-filters {
  border: 0;
  padding: 0;
  margin: 18px 0 0;
}
.catalogue-filters legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}
.catalogue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalogue-chips button {
  border: 1px solid #7b9b89;
  background: #234e3f;
  color: #f8f5e8;
  border-radius: 24px;
  min-height: 44px;
  padding: 9px 15px;
  font: 600 14px system-ui;
  cursor: pointer;
  touch-action: manipulation;
}
.catalogue-chips button[aria-pressed="true"] {
  background: #efd391;
  color: #183b2d;
  border-color: #efd391;
  box-shadow: inset 0 0 0 1px #183b2d;
}
#catalogue-hint {
  font-size: 13px;
  line-height: 1.5;
  color: #bdd1c5;
  margin: 12px 0;
}
.catalogue-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.catalogue-summary p {
  margin: 0;
  font-size: 14px;
}
.catalogue-summary button {
  font: 600 13px system-ui;
  padding: 9px 0;
  min-height: 44px;
  background: none;
  border: 0;
  color: #f1d58f;
  text-decoration: underline;
  cursor: pointer;
}
.catalogue-category-links {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin: 16px 0 25px;
  font-size: 13px;
}
.catalogue-category-links a {
  color: #edcf91;
  text-underline-offset: 4px;
}
.catalogue-group {
  margin: 30px 0 40px;
}
.catalogue-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 15px;
}
.catalogue-group-heading h3 {
  margin: 0;
  font:
    700 clamp(22px, 3vw, 29px) Georgia,
    serif;
  color: #fff5db;
}
.catalogue-group-heading h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  min-height: 27px;
  padding: 0 5px;
  box-sizing: border-box;
  background: #ffffff13;
  border-radius: 50%;
  font: 600 12px system-ui;
  color: #d6c28b;
  vertical-align: middle;
  margin-left: 5px;
}
.catalogue-group-heading > a {
  font-size: 13px;
  color: #efce86;
  text-align: right;
  text-decoration: none;
}
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 15px;
}
.game-tags span {
  font: 600 10px/1.4 system-ui;
  color: #d7e4d8;
  background: #ffffff0b;
  border: 1px solid #ffffff24;
  border-radius: 5px;
  padding: 4px 6px;
}
.info h4 {
  font-family: Georgia, serif;
  font-size: 25px;
  letter-spacing: -0.4px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff4d5;
}
.catalogue-empty {
  padding: 24px;
  border: 1px dashed #93ae9c;
  border-radius: 14px;
  color: #e6dfc9;
  line-height: 1.6;
}
.catalogue-intro {
  max-width: 800px;
  line-height: 1.7;
  color: #c5d9cb;
  margin-bottom: 20px;
}
.catalogue-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #d3c396;
  margin: 24px 0;
}
.catalogue-breadcrumb a {
  color: #efd391;
}
.category-hero {
  padding: 24px 0 10px;
}
.category-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(31px, 5vw, 53px);
  line-height: 1.15;
  max-width: 900px;
  margin: 15px 0;
}
[data-catalogue] [hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .catalogue-tools {
    padding: 14px;
    margin-top: 14px;
  }
  .catalogue-chips {
    gap: 7px;
  }
  .catalogue-chips button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .catalogue-group {
    margin: 24px 0 30px;
  }
  .catalogue-group-heading > a {
    max-width: 135px;
    font-size: 12px;
  }
  .catalogue-category-links {
    gap: 10px 15px;
  }
  .info h4 {
    font-size: 24px;
  }
  .category-hero {
    padding-top: 12px;
  }
}
/* Tre visninger af samme spil: billeder i gitter, ren tekst eller ét spil pr. række. */
.catalogue-views {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.catalogue-views > span {
  font-size: 13px;
  margin-right: 5px;
  color: #bfd1c4;
}
.catalogue-views button {
  font: 600 13px system-ui;
  min-height: 44px;
  padding: 9px 14px;
  color: #f7eed9;
  background: #244a3e;
  border: 1px solid #7b9b89;
  border-radius: 9px;
  cursor: pointer;
  touch-action: manipulation;
}
.catalogue-views button[aria-pressed="true"] {
  background: #efd391;
  color: #183b2d;
  border-color: #efd391;
}
[data-view="text"] .games {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 22px;
}
[data-view="text"] .game {
  border: 0;
  border-bottom: 1px solid #ffffff25;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
[data-view="text"] .art,
[data-view="text"] .info p,
[data-view="text"] .game-tags,
[data-view="text"] .game-footer {
  display: none;
}
[data-view="text"] .game-main {
  display: block;
  min-height: 0;
}
[data-view="text"] .game-main .info {
  padding: 17px 0;
}
[data-view="text"] .info h4 {
  font: 700 18px/1.3 system-ui;
  margin: 0 0 6px;
}
[data-view="text"] .play {
  margin: 0;
  font-size: 12px;
}
[data-view="list"] .games {
  grid-template-columns: 1fr;
  gap: 12px;
}
[data-view="list"] .game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
[data-view="list"] .game-main {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
}
[data-view="list"] .art {
  flex: 0 0 140px;
  width: 140px;
  height: auto;
  min-height: 152px;
  overflow: hidden;
}
[data-view="list"] .art > * {
  transform: scale(0.7);
}
[data-view="list"] .art .mini {
  flex-shrink: 0;
}
[data-view="list"] .game-main .info {
  padding: 17px 20px;
  min-width: 0;
}
[data-view="list"] .info h4 {
  font-size: 24px;
  margin: 0 0 8px;
}
[data-view="list"] .info p {
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 9px;
  line-height: 1.5;
}
[data-view="list"] .game-tags {
  display: none;
}
[data-view="list"] .play {
  margin-top: auto;
}
[data-view="list"] .game-footer {
  border-top: 0;
  border-left: 1px solid #ffffff20;
  padding: 16px;
  display: flex;
  align-items: center;
  max-width: 170px;
}
[data-view="list"] .game-footer a {
  padding: 10px;
  text-align: center;
}
@media (max-width: 1050px) {
  [data-view="text"] .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .catalogue-views {
    gap: 6px;
  }
  .catalogue-views > span {
    width: 100%;
  }
  .catalogue-views button {
    font-size: 12px;
    padding: 8px 13px;
  }
  [data-view="text"] .games {
    grid-template-columns: 1fr;
  }
  [data-view="list"] .game {
    grid-template-columns: 1fr;
  }
  [data-view="list"] .art {
    flex-basis: 80px;
    width: 80px;
    min-height: 145px;
  }
  [data-view="list"] .art .mini {
    width: 62px;
    height: 90px;
    font-size: 20px;
    padding: 6px;
  }
  [data-view="list"] .art .mini span {
    font-size: 32px;
  }
  [data-view="list"] .game-main .info {
    padding: 14px 12px;
  }
  [data-view="list"] .info h4 {
    font-size: 21px;
  }
  [data-view="list"] .game-footer {
    border-top: 1px solid #ffffff20;
    border-left: 0;
    padding: 8px 12px;
    max-width: none;
    justify-content: flex-end;
  }
  [data-view="list"] .game-footer a {
    padding: 7px 0;
    font-size: 12px;
  }
  [data-view="list"] .info p {
    font-size: 13px;
  }
  [data-view="list"] .play {
    font-size: 12px;
  }
}
/* Kortere indledning giver hurtigere adgang til søgning og spil. */
.abc-catalogue-home .hero {
  padding: 28px 0 20px;
}
.abc-catalogue-home .hero h1 {
  font-size: clamp(32px, 4.4vw, 56px);
  margin: 12px 0;
}
.abc-catalogue-home .hero p {
  margin: 10px 0;
  max-width: 700px;
}
.info h4 {
  font-size: 22px;
}
[data-view="list"] .art {
  flex-basis: 110px;
  width: 110px;
  min-height: 114px;
}
[data-view="list"] .game-footer {
  margin: 0;
  align-self: stretch;
}
@media (max-width: 650px) {
  .abc-catalogue-home .hero {
    padding: 17px 0 12px;
  }
  .abc-catalogue-home .hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }
  .abc-catalogue-home .hero p {
    font-size: 13px;
    line-height: 1.5;
  }
  .catalogue-chips button {
    padding: 9px 8px;
  }
  .catalogue-views > span {
    width: auto;
  }
  .info h4 {
    font-size: 19px;
  }
  .game-tags span {
    font-size: 9px;
    padding: 3px 5px;
  }
  [data-view="list"] .art {
    flex-basis: 80px;
    width: 80px;
    min-height: 126px;
  }
  [data-view="list"] .info h4 {
    font-size: 21px;
  }
}
[data-view="list"] .game-footer:empty {
  display: none;
}
.catalogue-about {
  max-width: 850px;
  margin: 36px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #c5d9cb;
}
.catalogue-about h2 {
  font-family: Georgia, serif;
  color: #fff3d5;
}
.category-hero .catalogue-intro {
  max-width: 850px;
  margin-bottom: 10px;
}

/* Søgning og kategorifiltre foldes ud efter behov; visningsvalg er altid tilgængelige. */
.catalogue-search-toggle {
  border: 1px solid #7b9b89;
  border-radius: 12px;
  background: #234e3f;
  color: #fff8e5;
  padding: 10px 20px;
  min-height: 44px;
  font: 600 15px system-ui;
  cursor: pointer;
  touch-action: manipulation;
}
.catalogue-search-toggle[aria-expanded="true"] {
  border-color: #efd391;
  color: #efd391;
}
.catalogue-search-toggle:focus-visible {
  outline: 3px solid #f1d58f;
  outline-offset: 3px;
}
.catalogue-display-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.catalogue-display-tools .catalogue-views {
  margin: 0;
}
.catalogue-display-tools .catalogue-summary {
  gap: 14px;
}
@media (max-width: 600px) {
  .catalogue .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .catalogue-search-toggle {
    margin-left: auto;
  }
}

/* Ikonerne er lokale SVG'er og kræver ingen ikonfont eller ekstra netværkskald. */
.catalogue-views button[data-view-choice] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-shrink: 0;
}
.catalogue-views button svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: currentColor;
  pointer-events: none;
}
