/* RKPetz — responsive visual polish */
:root {
  color-scheme: dark;
  --surface: #171013;
  --surface-raised: #211419;
  --surface-soft: #28151c;
  --gold-line: #9b713d;
  --gold-glow: #ffdda0;
  --shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

html { scrollbar-color: #76512f #100c0e; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% -10%, rgba(111, 30, 47, .28), transparent 35rem),
    radial-gradient(circle at 8% 68%, rgba(89, 29, 37, .16), transparent 30rem),
    linear-gradient(135deg, #100b0d 0%, #0e0a0c 52%, #130c0f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(238, 186, 96, .035) 48% 49%, transparent 50%),
    radial-gradient(circle, rgba(255, 255, 255, .07) 0 1px, transparent 1px);
  background-size: 170px 170px, 7px 7px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.sidebar {
  border-right-color: rgba(223, 173, 91, .22);
  background:
    radial-gradient(circle at 45% 0, rgba(114, 32, 49, .35), transparent 18rem),
    linear-gradient(165deg, #211017 0%, #120d10 48%, #0e0b0d 100%);
  box-shadow: 14px 0 50px rgba(0, 0, 0, .16);
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 34%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: .7;
}

.brand img { filter: drop-shadow(0 7px 18px rgba(238, 174, 70, .12)); }
.brand > span { color: #c1aaab; }

.sidebar nav a {
  min-height: 54px;
  border-radius: 3px;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.sidebar nav a:hover {
  transform: translateX(3px);
  border-color: rgba(225, 172, 86, .18);
  background: linear-gradient(90deg, rgba(76, 27, 39, .72), rgba(35, 18, 24, .45));
}

.sidebar nav a[aria-current] {
  background: linear-gradient(100deg, rgba(92, 31, 46, .82), rgba(39, 19, 26, .55));
  border-color: rgba(206, 151, 75, .28);
  box-shadow: inset 0 0 34px rgba(153, 60, 65, .08);
}

.main {
  width: auto;
  padding-top: clamp(30px, 4vw, 54px);
  padding-bottom: 12px;
}

.page-heading {
  min-height: 98px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(202, 157, 91, .18);
}

.eyebrow { color: #bdaeb0; }

h1 {
  width: fit-content;
  color: var(--gold-bright);
  background: linear-gradient(110deg, #ffe9b7 0%, #efbe62 52%, #a96824 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 12px 40px rgba(207, 137, 50, .1);
}

.header-link {
  padding: 8px 0 8px 20px;
  border-left: 1px solid rgba(207, 159, 89, .25);
}

.player-shell {
  aspect-ratio: 16 / 7.25;
  max-height: 650px;
  border-color: rgba(219, 164, 82, .66);
  border-radius: 4px 4px 0 0;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 230, 170, .04);
}

.hero-art { transition: transform .7s ease, filter .7s ease; }
.player-shell:hover .hero-art { transform: scale(1.012); filter: saturate(1.06); }

.hero-shade {
  background:
    radial-gradient(circle at 50% 52%, transparent 0 22%, rgba(4, 3, 4, .15) 60%, rgba(4, 3, 4, .34) 100%),
    linear-gradient(90deg, rgba(5, 4, 5, .18), transparent 24%, transparent 76%, rgba(5, 4, 5, .2));
}

.player-corner {
  border: 1px solid rgba(221, 172, 93, .36);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-logo { filter: drop-shadow(0 8px 30px #000) drop-shadow(0 0 14px rgba(239, 183, 80, .13)); }

.button {
  border-radius: 3px;
  letter-spacing: .01em;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button-gold {
  background: linear-gradient(115deg, #ffe8ad, #e7b35e 70%, #c78935);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .45);
}

.button-gold:hover { box-shadow: 0 13px 35px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 222, 156, .2); }
.button-glass { backdrop-filter: blur(8px); }

.player-caption {
  padding: 18px 24px;
  background: linear-gradient(110deg, #211318, #171113 62%, #1e1116);
  border-color: rgba(133, 91, 60, .55);
  border-radius: 0 0 4px 4px;
}

.community, .section-block { margin-top: clamp(38px, 5vw, 64px); }

.section-heading { margin-bottom: 24px; }
.section-heading h2 { color: var(--gold-bright); letter-spacing: .055em; }
.fine-rule { background: linear-gradient(90deg, rgba(210, 155, 76, .7), rgba(117, 57, 43, .15), transparent); }

.support-grid { gap: 18px; }

.support-card {
  min-height: 248px;
  overflow: hidden;
  border-color: rgba(113, 74, 57, .64);
  border-radius: 4px;
  background:
    radial-gradient(circle at 100% 0, rgba(121, 39, 54, .2), transparent 12rem),
    linear-gradient(145deg, #25161b, #171114 80%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
}

.support-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(147, 67, 52, .25));
  opacity: .75;
}

.support-card:hover {
  transform: translateY(-5px);
  border-color: rgba(233, 190, 112, .72);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .28);
}

.donation-card {
  background:
    radial-gradient(circle at 100% 0, rgba(160, 50, 66, .32), transparent 13rem),
    linear-gradient(145deg, #32151e, #191114 80%);
}

.notice-grid { gap: 18px; }

.notice-card {
  border-color: rgba(96, 69, 58, .65);
  border-radius: 4px;
  background: linear-gradient(140deg, rgba(30, 20, 23, .96), rgba(19, 15, 17, .96));
}

.footer { margin-top: 48px; }

dialog {
  border-radius: 5px;
  border-color: rgba(221, 172, 93, .74);
  background: linear-gradient(145deg, #28171d, #161013);
  box-shadow: 0 28px 80px #000b;
}

/* Bio */
.bio-intro {
  position: relative;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 82px);
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(112, 75, 58, .68);
  border-radius: 5px;
  background:
    radial-gradient(circle at 92% 18%, rgba(116, 34, 50, .33), transparent 18rem),
    linear-gradient(135deg, rgba(37, 22, 27, .96), rgba(18, 14, 16, .98));
  box-shadow: var(--shadow);
}

.bio-intro::after {
  content: "⚜";
  position: absolute;
  right: 34px;
  bottom: -44px;
  color: rgba(230, 176, 88, .055);
  font: 180px/1 Georgia, serif;
  pointer-events: none;
}

.bio-intro > div, .bio-illustration { position: relative; z-index: 1; }
.bio-intro p { max-width: 780px; }

.bio-illustration {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(237, 191, 104, .64);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 38px rgba(139, 43, 50, .18);
}

.game-descriptions {
  gap: 14px;
  column-gap: 14px;
  margin-top: 2px;
}

.game-descriptions li {
  position: relative;
  padding: 22px 22px 22px 25px;
  border: 1px solid rgba(83, 58, 50, .68);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(34, 21, 26, .82), rgba(19, 15, 17, .88));
}

.game-descriptions li::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), #713337);
}

.game-descriptions h3 { margin-bottom: 9px; }
.subtle { margin-top: 17px; }

.spec-grid {
  overflow: hidden;
  border-color: rgba(107, 73, 57, .74);
  border-radius: 4px;
  background: linear-gradient(140deg, rgba(30, 20, 23, .96), rgba(18, 14, 16, .98));
  box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
}

.spec-item { transition: background .18s ease; }
.spec-item:hover { background: rgba(82, 31, 43, .2); }

.library-section {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(109, 75, 58, .7);
  border-radius: 5px;
  background:
    radial-gradient(circle at 100% 0, rgba(104, 29, 44, .22), transparent 23rem),
    linear-gradient(145deg, rgba(29, 18, 22, .98), rgba(16, 13, 15, .98));
  box-shadow: var(--shadow);
}

.library-toolbar {
  padding: 16px;
  border: 1px solid rgba(81, 59, 50, .74);
  border-radius: 4px;
  background: rgba(10, 8, 9, .34);
}

.library-search {
  min-height: 48px;
  border-color: rgba(169, 119, 58, .72);
  background: rgba(14, 10, 12, .94);
}

.library-grid { gap: 8px; border: 0; }

.library-grid li {
  min-height: 62px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(76, 55, 48, .72);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(40, 23, 29, .94), rgba(22, 16, 19, .96));
  transition: border-color .18s ease, background .18s ease;
}

.library-grid li:hover {
  border-color: rgba(202, 151, 80, .55);
  background: linear-gradient(135deg, rgba(55, 27, 35, .98), rgba(25, 17, 20, .98));
}

/* Creations */
.project-feature {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(430px, 1.08fr);
  overflow: hidden;
  border-color: rgba(175, 121, 61, .68);
  border-radius: 5px;
  background: linear-gradient(140deg, #1e1519, #120f12);
  box-shadow: var(--shadow);
}

.project-image { min-height: 100%; aspect-ratio: auto; }
.project-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 68%, #171115 100%); }
.project-image img { transition: transform .8s ease; }
.project-feature:hover .project-image img { transform: scale(1.02); }
.project-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 4vw, 64px); }
.project-copy h2 { width: fit-content; }
.project-tags span { border-radius: 999px; background: rgba(73, 37, 38, .22); }

@media (max-width: 1180px) {
  .project-feature { grid-template-columns: minmax(300px, .86fr) minmax(390px, 1.14fr); }
  .project-copy { padding: 34px; }
  .support-card { min-height: 232px; }
  .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .sidebar {
    box-shadow: 0 10px 32px rgba(0, 0, 0, .24);
    background:
      radial-gradient(circle at 14% 0, rgba(111, 29, 47, .34), transparent 15rem),
      linear-gradient(115deg, #211017, #100c0e 76%);
  }

  .sidebar::after { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .sidebar nav a { min-width: 0; min-height: 48px; padding: 11px 7px; text-align: center; white-space: normal; line-height: 1.25; }
  .sidebar nav a:hover { transform: none; }
  .main { padding-top: 24px; }
  .page-heading { min-height: 0; padding-bottom: 18px; }
  .player-shell { aspect-ratio: 16 / 9; max-height: none; }
  .support-grid { grid-template-columns: 1fr; }
  .support-card { min-height: 0; }
  .bio-intro { grid-template-columns: minmax(170px, 210px) minmax(0, 1fr); padding: 30px; }
  .bio-illustration { max-width: 210px; }
  .project-feature { grid-template-columns: 1fr; }
  .project-image { min-height: 260px; aspect-ratio: 16 / 8; }
  .project-image::after { background: linear-gradient(to bottom, transparent 68%, #171115 100%); }
}

@media (max-width: 560px) {
  .sidebar { padding: 16px 16px 0; }
  .brand { width: 132px; }
  .brand > span { margin-top: 7px; }
  .sidebar-bottom { top: 18px; right: 16px; }
  .social-links { gap: 13px; }
  .sidebar nav { margin-top: 16px; }
  .sidebar nav a { padding: 11px 4px; font-size: .78rem; }

  .main { padding: 22px 14px 0; }
  .page-heading { margin-bottom: 20px; }
  .page-heading h1 { font-size: clamp(2.55rem, 13vw, 3.15rem); }
  .eyebrow { letter-spacing: .18em; }

  .player-shell { width: 100%; min-height: 350px; aspect-ratio: auto; }
  .player-corner { top: 13px; left: 13px; }
  .player-intro { padding-inline: 16px; }
  .hero-logo { width: 62%; }
  .player-caption { padding: 15px 16px; }
  .fleur { font-size: 1.6rem; }

  .community, .section-block { margin-top: 42px; }
  .section-heading { gap: 14px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 1rem; }
  .support-card { padding: 21px 20px; }
  .notice-card { padding: 18px; }

  .bio-intro { grid-template-columns: 1fr; gap: 20px; padding: 24px 20px 26px; }
  .bio-illustration { width: min(100%, 190px); max-width: none; justify-self: center; }
  .bio-intro h2 { margin-bottom: 18px; }
  .bio-intro p { margin-bottom: 15px; line-height: 1.68; }
  .bio-intro::after { right: -8px; bottom: -25px; font-size: 125px; }

  .game-descriptions { gap: 9px; }
  .game-descriptions li { padding: 18px 17px 18px 20px; }
  .spec-item { padding: 18px 14px; }
  .spec-item dd { overflow-wrap: anywhere; }

  .library-section { padding: 22px 14px; }
  .library-toolbar { padding: 13px; }
  .library-status { white-space: normal; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .library-grid li { min-height: 70px; padding: 12px; }
  .library-grid strong { font-size: .9rem; }
  .library-more { width: 100%; }

  .project-image { min-height: 0; aspect-ratio: 16 / 10; }
  .project-copy { padding: 26px 20px 28px; }
  .project-copy h2 { margin-bottom: 15px; }
  .project-tags { gap: 8px; margin: 21px 0; }
  .project-tags span { padding: 5px 10px; font-size: .8rem; }

  .footer { margin-top: 40px; }
}

@media (max-width: 360px) {
  .brand { width: 118px; }
  .social-links { gap: 9px; font-size: .75rem; }
  .sidebar nav a { font-size: .72rem; }
  .library-grid { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .player-shell:hover .hero-art,
  .project-feature:hover .project-image img { transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art, .project-image img { transition: none; }
}

/* Compact Pixelonia project tile with the supplied transparent mark. */
.project-feature {
  grid-template-columns: 290px minmax(0, 1fr);
  max-width: 1180px;
  margin: 24px auto 0;
  align-items: stretch;
}
.project-image {
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: auto;
  padding: 10px;
  background: radial-gradient(ellipse at 50% 48%, rgba(67, 24, 113, .3), transparent 72%), #100c11;
}
.project-image::after { display: none; }
.project-image img {
  position: relative;
  z-index: 1;
  width: min(100%, 270px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform .25s ease;
}
.project-copy { padding: clamp(22px, 3vw, 36px); }
.project-copy h2 { font-size: clamp(2rem, 3.2vw, 3rem); margin: 4px 0 12px; }
.project-copy p { font-size: 1rem; line-height: 1.55; margin-bottom: 12px; }
.project-tags { gap: 8px; margin: 15px 0; }
.project-copy .button { margin-top: 0; }
.project-link { margin-top: 12px; }
.project-feature { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.project-copy { text-align: center; }
.project-copy h2 { margin-left: auto; margin-right: auto; }
.project-tags { justify-content: center; }
.project-link { align-self: center; margin-left: 0; }

@media (max-width: 800px) {
  .project-feature { grid-template-columns: 1fr; max-width: none; margin: 20px 0 0; }
  .project-image { min-height: 0; aspect-ratio: auto; padding: 12px; }
  .project-image img { width: min(70vw, 230px); }
  .project-copy { padding: 22px 20px 24px; }
  .project-copy h2 { margin-bottom: 12px; }
  .project-tags { margin: 14px 0; }
}

@media (max-width: 420px) {
  .project-image img { width: 220px; }
  .project-copy p { font-size: .95rem; }
}

/* Collapsible, low-maintenance Bio sections. */
.bio-intro > div { text-align: center; }
.bio-intro p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.content-disclosure,
.library-disclosure {
  border: 1px solid rgba(109, 75, 58, .68);
  border-radius: 4px;
  background: linear-gradient(140deg, rgba(30, 20, 23, .82), rgba(18, 14, 16, .9));
}
.content-disclosure > summary,
.library-disclosure > summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  color: var(--gold-bright);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.content-disclosure > summary::-webkit-details-marker,
.library-disclosure > summary::-webkit-details-marker { display: none; }
.content-disclosure > summary::after,
.library-disclosure > summary::after { content: "+"; color: var(--gold); font-size: 1.35rem; line-height: 1; }
.content-disclosure[open] > summary,
.library-disclosure[open] > summary { border-bottom: 1px solid rgba(109, 75, 58, .48); }
.disclosure-count { white-space: nowrap; color: #d3b77f; font-size: .85rem; font-weight: 500; }
.content-disclosure[open] > summary::after,
.library-disclosure[open] > summary::after { content: "−"; }
.content-disclosure .game-descriptions { padding: 0 18px; }
.content-disclosure .subtle { padding: 0 18px 18px; }
.library-section.library-disclosure { padding: 0; }
.library-disclosure .library-intro,
.library-disclosure .library-toolbar,
.library-disclosure .library-grid,
.library-disclosure .library-more { margin-left: 18px; margin-right: 18px; }
.library-disclosure .library-intro { margin-top: 18px; }
.library-disclosure .library-toolbar { margin-bottom: 17px; }
.library-disclosure .library-grid { margin-bottom: 18px; }
.library-disclosure .library-more { margin-bottom: 18px; width: calc(100% - 36px); }
.library-search:disabled { opacity: .55; cursor: wait; }
@media (max-width: 560px) {
  .content-disclosure > summary,
  .library-disclosure > summary { padding: 12px 14px; }
  .content-disclosure .game-descriptions { padding: 0 14px; }
  .content-disclosure .subtle { padding: 0 14px 14px; }
  .library-disclosure .library-intro,
  .library-disclosure .library-toolbar,
  .library-disclosure .library-grid,
  .library-disclosure .library-more { margin-left: 12px; margin-right: 12px; }
  .library-disclosure .library-more { width: calc(100% - 24px); }
}
