/* Pip Club: final visual layer. Geometry and game behavior remain in their owners. */
:root {
  --cream: #f6f1e7;
  --ivory: #f6f1e7;
  --ink: #f6f1e7;
  --paper: #24152f;
  --deep: #e4ff35;
  --sage: #7e668e;
  --terra: #e4ff35;
  --gold: #e4ff35;
  --honey: #7e668e;
  --coral: #ff825f;
  --line: #7e668e66;
  --shadow: 0 8px 0 #170c22, 0 12px 28px #10071866;
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
}
html,
body {
  background: #362441;
  color: var(--cream);
}
#boot {
  background: #24152f;
  color: #e4ff35;
}
.boot-logo {
  width: min(440px, 75vw);
  max-height: 250px;
  filter: none;
}
#art-progress {
  accent-color: #e4ff35;
}
.btn,
.btn.terra,
.btn.gold {
  background: #e4ff35;
  background-image: none;
  border: 2px solid #e4ff35;
  border-image: none;
  color: #24152f;
  border-radius: 14px;
  font-weight: 800;
  font-size: 23px;
  text-transform: uppercase;
  box-shadow:
    0 4px 0 #9cae1c,
    0 8px 18px #120a2333;
}
.btn.secondary {
  background: #453251;
  border-color: #7e668e;
  color: #f6f1e7;
  box-shadow: 0 4px 0 #1c1028;
}
.btn.terra {
  background: #ff825f;
  border-color: #ff825f;
  box-shadow: 0 4px 0 #a74c35;
}
.btn:active,
.btn.secondary:active,
.btn.terra:active,
.btn.gold:active {
  box-shadow: 0 1px 0 #170c22;
}
.btn.small {
  min-height: 44px;
  font-size: 19px;
}
.btn.danger,
.btn.secondary.danger {
  color: #ffad97;
}
.icon-btn {
  background: #24152f;
  background-image: none;
  border: 2px solid #9b81ad;
  border-image: none;
  color: #f6f1e7;
  box-shadow: 0 3px 0 #170c22;
  width: 48px;
  height: 48px;
}
.icon-btn svg {
  filter: none;
}
.icon-btn.on {
  background: #e4ff35;
  color: #24152f;
  box-shadow: 0 3px 0 #9cae1c;
}
.icon-btn:focus-visible,
.btn:focus-visible {
  outline: 3px solid #f6f1e7;
}
.screen {
  background: #24152fe8;
  padding: 24px;
}
.screen.overlay {
  background: #170c22bb;
}
.panel {
  background: #24152f;
  border: 2px solid #7e668e;
  border-image: none;
  color: #f6f1e7;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.panel h2 {
  font-size: 36px;
  font-weight: 800;
  color: #f6f1e7;
}
.panel h3 {
  color: #d6c2e5;
  font-size: 24px;
  font-weight: 700;
}
.panel-head {
  position: relative;
  display: flex;
  min-height: 62px;
  padding: 0 52px 16px;
  margin-bottom: 18px;
  border: 0;
  border-image: none;
  border-bottom: 1px solid #7e668e66;
  background: none;
}
.panel-head h2 {
  text-align: center;
}
.panel-head > .icon-btn {
  top: calc(50% - 8px);
}
.muted,
.panel .muted,
.kbd-list,
.coll-item small,
.chapter-head small,
.stat span,
.hand-row .who small,
.hand-row .empty {
  color: #c9b6d7;
}
.panel p {
  color: #f6f1e7;
}
.panel p.result-calc {
  color: #d6c2e5;
}
.panel-foot,
.panel.more-below .panel-foot {
  background: #24152f;
  border-color: #7e668e;
  box-shadow: none;
}
.panel.more-below .panel-foot::before,
.panel.more-below:not(.has-foot)::after {
  background: none;
}
.mode-card,
.opp-pick,
.swatch,
.chapter,
.coll-item,
.stat,
.hand-row,
.enc {
  background: #362441;
  color: #f6f1e7;
  border: 2px solid #513b61;
  box-shadow: none;
}
.mode-card.on,
.opp-pick.on,
.swatch.on,
.coll-item.on {
  background: #443052;
  border-color: #e4ff35;
}
.mode-card span,
.opp-pick small,
.swatch small,
.coll-item .lock {
  color: #c9b6d7;
}
.mode-card b,
.opp-pick b,
.chapter-head b,
.coll-item b,
.stat b,
.hand-row .who,
.hand-row .sum {
  color: #f6f1e7;
}
.opp-pick {
  border-radius: 18px;
  padding: 12px 6px;
}
.opp-pick .char-wrap {
  width: 112px;
  height: 114px;
  mask-image: none;
  -webkit-mask-image: none;
}
.opp-pick b {
  font-size: 26px;
}
.opp-pick small {
  font-size: 12px;
}
.char-wrap,
.result-char,
.chapter-head .char-wrap,
.tut-card .char-wrap {
  mask-image: none;
  -webkit-mask-image: none;
}
.seg {
  background: #170c22;
  padding: 5px;
  border: 1px solid #513b61;
}
.seg button {
  color: #c9b6d7;
  min-height: 44px;
}
.seg button.on {
  background: #e4ff35;
  color: #24152f;
  box-shadow: none;
}
.enc.done {
  background: #453251;
  color: #e4ff35;
}
.enc.next {
  border-color: #e4ff35;
  box-shadow: none;
}
.club-seal {
  display: inline-grid;
  place-items: center;
  color: #e4ff35;
  background: #24152f;
  border: 2px solid #7e668e;
  border-radius: 12px;
  width: 40px;
  height: 40px;
}
.club-seal svg {
  width: 26px;
  height: 26px;
}
.chapter-art {
  height: 94px;
  object-position: 50% 37%;
}
.coll-item.on .btn:disabled {
  background: #e4ff35;
  color: #24152f;
  box-shadow: none;
}
.switch {
  background: #5c456c;
  box-shadow: none;
}
.switch[aria-checked='true'] {
  background: #d3ef28;
  box-shadow: none;
}
.setting input[type='range'] {
  accent-color: #e4ff35;
}
.setting .seg {
  flex: none;
}
.setting .lbl,
.setting label {
  min-width: 0;
}
table.stats-table th,
.result-calc {
  color: #c9b6d7;
}
.result-points {
  color: #e4ff35;
}
.result-win .result-char {
  background: none;
}
.result-title h2 {
  border-image: none;
  background: none;
  color: #e4ff35;
}
.result-char {
  width: 140px;
  height: 142px;
}
.toast,
.toast.gold,
.tut-card {
  background: #24152f;
  border: 2px solid #7e668e;
  border-image: none;
  color: #f6f1e7;
  border-radius: 18px;
  box-shadow: 0 5px 0 #170c22;
}
.tut-progress {
  color: #c9b6d7;
}
.bubble,
.bubble.hint {
  background: #24152f;
  border: 2px solid #e4ff35;
  color: #f6f1e7;
}
.banner,
.banner.soft {
  color: #e4ff35;
  text-shadow: 0 4px 0 #24152f;
}
.lang-switch {
  background: #24152f;
  border: 1px solid #7e668e;
  padding: 4px;
}
.lang-switch button {
  color: #c9b6d7;
  min-height: 36px;
}
.lang-switch button.on {
  color: #24152f;
  background: #e4ff35;
}
/* Hero uses a complete illustrated scene; UI text remains independent. */
#screens .title-screen {
  background: #362441;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  grid-template-rows: 1fr auto auto 1fr;
  gap: 16px 3vw;
  padding: 30px 5vw;
  overflow: hidden;
}
#screens .title-screen > .title-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  visibility: visible;
  margin: 0;
  pointer-events: none;
}
.title-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#screens .title-screen > .logo {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  position: relative;
  filter: none;
  background: #24152ff2;
  border-radius: 24px 24px 0 0;
  padding: 20px 24px 0;
  margin-bottom: -20px;
}
#screens .title-screen .brand-logo {
  width: 100%;
  max-width: 310px;
  height: auto;
  max-height: 190px;
  filter: none;
}
#screens .title-screen .logo .l2 {
  color: #f6f1e7;
  background: none;
  text-shadow: none;
  font-size: 26px;
  padding: 0;
  margin-top: 8px;
}
#screens .title-screen .logo .l3 {
  color: #c9b6d7;
  background: none;
  text-shadow: none;
  font-size: 14px;
  padding: 0;
  margin-top: 5px;
}
#screens .title-screen > .title-menu {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  position: relative;
  background: #24152ff2;
  padding: 20px 24px;
  border: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 0 #170c2288;
  gap: 12px;
}
#screens .title-menu .btn {
  min-height: 54px;
}
#screens .title-menu .btn.small {
  min-height: 46px;
  font-size: 19px;
}
#screens .title-menu .toast {
  border: 0;
  padding: 6px;
  font-size: 13px;
  background: none;
  box-shadow: none;
}
#screens .title-screen > .lang-switch {
  grid-column: 2;
  grid-row: 3;
  position: relative;
  justify-self: center;
}
/* Match HUD: brand and opponent on the left, score centered, utilities right. */
.hud-top {
  left: 20px;
  right: 20px;
  gap: 14px;
}
.hud-brand {
  width: 142px;
  height: 110px;
  object-fit: contain;
  flex: none;
}
.opp-card,
.opp-card.turn {
  background: #24152ff2;
  border: 2px solid #7e668e;
  border-image: none;
  box-shadow: none;
  filter: none;
  border-radius: 24px;
  padding: 8px 20px 8px 8px;
  min-height: 90px;
  gap: 12px;
}
.opp-card.turn {
  border-color: #e4ff35;
}
.opp-portrait {
  width: 78px;
  height: 78px;
  border: 2px solid #ac91c3;
  background: #7e668e;
  overflow: hidden;
}
.opp-portrait .char-wrap {
  inset: 0;
}
.opp-name {
  color: #f6f1e7;
  font-weight: 800;
  font-size: 27px;
  text-transform: uppercase;
}
.opp-name::after {
  content: ' · CPU';
  color: #e4ff35;
  font-size: 20px;
}
.opp-meta {
  color: #c9b6d7;
  gap: 8px;
}
.opp-count {
  color: #c9b6d7;
  font-family: var(--font-body);
  font-size: 16px;
  margin: 0;
}
.diff-chip,
.diff-chip.normal,
.diff-chip.hard {
  background: #513b61;
  color: #f6f1e7;
}
.opp-backs {
  display: none;
}
.hud-top .score-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #24152ff2;
  border: 2px solid #7e668e;
  border-image: none;
  border-radius: 20px;
  padding: 8px 24px;
  filter: none;
  box-shadow: none;
  min-width: 220px;
}
.score-row {
  display: flex;
  gap: 18px;
  align-items: center;
}
.score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.score-team > span {
  font: 800 14px var(--font-body);
  text-transform: uppercase;
  color: #f6f1e7;
}
.score-team b {
  color: #f6f1e7;
  font-size: 48px;
  line-height: 1;
}
.score-team:first-child b {
  color: #e4ff35;
}
.score-row .sep {
  color: #c9b6d7;
  font-size: 36px;
}
.score-sub {
  color: #c9b6d7;
  font-size: 11px;
  margin-top: 3px;
}
.hud-hint {
  border-color: #e4ff35;
  color: #e4ff35;
}
.hud-action {
  left: 20px;
  right: 20px;
  padding-bottom: 12px;
  display: grid;
  grid-template-columns: 50px 50px minmax(0, 1fr) 108px 150px;
  gap: 14px;
}
.hud-action > .icon-btn {
  width: 50px;
  height: 50px;
}
.hud-action .status-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid #7e668e;
  border-image: none;
  background: #24152f;
  color: #f6f1e7;
  border-radius: 999px;
  width: max-content;
  min-width: 160px;
  max-width: calc(100% - 620px);
  min-height: 44px;
  padding: 7px 22px;
  font-size: 21px;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: none;
}
.hud-action .status-pill.you {
  background: #e4ff35;
  color: #24152f;
  border-color: #e4ff35;
}
.hud-action .status-pill.warn {
  background: #ff825f;
  color: #24152f;
  border-color: #ff825f;
}
.status-pill .st-icon {
  display: none !important;
}
.hud-action .pile-slot {
  grid-column: 4;
  width: 108px;
  height: 66px;
}
.hud-action .action-main {
  grid-column: 5;
  min-width: 0;
  width: 150px;
  min-height: 56px;
  font-size: 25px;
}
.pile-count {
  color: #24152f;
  background: #e4ff35;
  border: 2px solid #24152f;
  font-size: 20px;
  height: 30px;
  min-width: 32px;
  box-shadow: none;
}
@media (max-width: 1100px) {
  .hud-brand {
    width: 90px;
    height: 78px;
  }
  .opp-card {
    padding-right: 12px;
    gap: 8px;
  }
  .opp-portrait {
    width: 64px;
    height: 64px;
  }
  .opp-name {
    font-size: 22px;
  }
  .opp-name::after {
    font-size: 15px;
  }
  .hud-top .score-card {
    min-width: 180px;
    padding: 6px 16px;
  }
  .score-team b {
    font-size: 36px;
  }
  .hud-action .status-pill {
    max-width: calc(100% - 470px);
    font-size: 18px;
    padding-inline: 12px;
  }
}
@media (orientation: portrait) {
  #screens .title-screen {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto auto;
    padding: 18px 20px;
    gap: 12px;
    align-items: stretch;
  }
  #screens .title-screen > .title-art {
    inset: 0 0 auto;
    height: 45%;
  }
  .title-art > img {
    object-position: 28% center;
  }
  #screens .title-screen > .logo {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    padding: 14px 18px 8px;
    margin: 0;
    background: #24152ff5;
    border-radius: 20px;
  }
  #screens .title-screen .brand-logo {
    max-height: 115px;
    width: 190px;
  }
  #screens .title-screen .logo .l2 {
    font-size: 23px;
  }
  #screens .title-screen .logo .l3 {
    font-size: 12px;
  }
  #screens .title-screen > .title-menu {
    grid-column: 1;
    grid-row: 2;
    padding: 16px;
    border-radius: 20px;
    gap: 10px;
  }
  #screens .title-menu .btn {
    min-height: 49px;
  }
  #screens .title-menu .btn.small {
    min-height: 44px;
    font-size: 18px;
  }
  #screens .title-screen > .lang-switch {
    grid-column: 1;
    grid-row: 3;
  }
  .hud-top {
    left: 8px;
    right: 8px;
    top: calc(8px + var(--safe-t));
    gap: 7px;
    align-items: flex-start;
  }
  .hud-brand {
    display: none;
  }
  .opp-card,
  .opp-card.turn {
    min-height: 72px;
    padding: 6px 9px 6px 5px;
    gap: 7px;
    border-radius: 18px;
  }
  .opp-portrait {
    width: 55px;
    height: 55px;
  }
  .opp-name {
    font-size: 23px;
  }
  .opp-name::after {
    font-size: 14px;
  }
  .opp-meta {
    gap: 4px;
  }
  .opp-count {
    font-size: 12px;
  }
  .diff-chip {
    font-size: 10px;
    padding-inline: 5px;
  }
  .hud-top > .icon-btn {
    width: 44px;
    height: 44px;
  }
  .hud-rules {
    display: none;
  }
  .hud-top .score-card {
    top: 78px;
    min-width: 176px;
    padding: 5px 12px;
    border-radius: 16px;
    gap: 2px;
  }
  .score-row {
    gap: 14px;
  }
  .score-team {
    flex-direction: row;
    gap: 8px;
  }
  .score-team > span {
    font-size: 11px;
  }
  .score-team b {
    font-size: 27px;
  }
  .score-row .sep {
    font-size: 24px;
    margin: 0;
  }
  .score-sub {
    font-size: 10px;
  }
  .hud-action {
    left: 8px;
    right: 8px;
    padding-bottom: 20px;
    grid-template-columns: 44px 44px minmax(64px, 1fr) 108px;
    grid-template-rows: 44px 52px;
    gap: 10px 8px;
  }
  .hud-action .status-pill {
    position: static;
    transform: none;
    grid-column: 1/-1;
    grid-row: 1;
    max-width: 100%;
    min-width: 0;
    font-size: 18px;
    min-height: 40px;
    padding: 6px 16px;
  }
  .hud-action > .icon-btn {
    grid-row: 2;
    width: 44px;
    height: 44px;
  }
  .hud-action .pile-slot {
    grid-column: 3;
    grid-row: 2;
    width: 84px;
    height: 52px;
  }
  .hud-action .action-main {
    grid-column: 4;
    grid-row: 2;
    width: 108px;
    min-width: 0;
    min-height: 48px;
    font-size: 21px;
  }
  .panel {
    padding: 16px;
    border-radius: 20px;
  }
  .panel h2 {
    font-size: 29px;
  }
  .panel h3 {
    font-size: 23px;
  }
  .opp-pick .char-wrap {
    width: 88px;
    height: 90px;
  }
  .opp-pick b {
    font-size: 24px;
  }
  .opp-pick small {
    font-size: 11px;
  }
}
@media (orientation: landscape) and (max-height: 520px) {
  #screens .title-screen {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: 1fr auto;
    padding: 12px 24px;
    gap: 8px 20px;
  }
  #screens .title-screen > .logo {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    display: block;
    background: #24152fe8;
    border-radius: 18px;
    padding: 10px;
    margin: 0;
    justify-self: start;
  }
  #screens .title-screen .brand-logo {
    width: 170px;
    max-height: 115px;
  }
  #screens .title-screen .logo .l2 {
    font-size: 20px;
  }
  #screens .title-screen .logo .l3 {
    display: none;
  }
  #screens .title-screen > .title-menu {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 12px;
    border-radius: 18px;
    gap: 8px;
  }
  #screens .title-menu .btn {
    min-height: 44px;
    font-size: 20px;
  }
  #screens .title-menu .btn.small {
    min-height: 40px;
    font-size: 17px;
  }
  #screens .title-screen > .lang-switch {
    grid-column: 2;
    grid-row: 2;
  }
  .hud-top {
    left: 8px;
    right: 8px;
    gap: 8px;
  }
  .hud-brand {
    width: 72px;
    height: 54px;
  }
  .opp-card,
  .opp-card.turn {
    min-height: 54px;
    padding: 4px 12px 4px 4px;
    gap: 6px;
    border-radius: 16px;
  }
  .opp-portrait {
    width: 42px;
    height: 42px;
  }
  .opp-name {
    font-size: 20px;
  }
  .opp-name::after {
    font-size: 12px;
  }
  .opp-count {
    font-size: 12px;
  }
  .hud-top .score-card {
    min-width: 160px;
    padding: 4px 12px;
  }
  .score-team b {
    font-size: 27px;
  }
  .score-team > span {
    font-size: 10px;
  }
  .score-sub {
    font-size: 9px;
  }
  .hud-top > .icon-btn {
    width: 44px;
    height: 44px;
  }
  .hud-action {
    left: 8px;
    right: 8px;
    grid-template-columns: 44px 44px minmax(0, 1fr) 76px 108px;
    gap: 8px;
    padding: 0;
  }
  .hud-action > .icon-btn {
    width: 44px;
    height: 44px;
  }
  .hud-action .status-pill {
    min-height: 38px;
    max-width: calc(100% - 370px);
    font-size: 17px;
    min-width: 0;
    padding: 5px 14px;
  }
  .hud-action .pile-slot {
    width: 76px;
    height: 44px;
  }
  .hud-action .action-main {
    width: 108px;
    min-height: 44px;
    font-size: 21px;
  }
  .panel h2 {
    font-size: 26px;
  }
  .panel-head {
    min-height: 48px;
  }
  .opp-pick .char-wrap {
    width: 76px;
    height: 78px;
  }
  .result-char {
    width: 90px;
    height: 92px;
  }
}

/* Keep the raster hero behind interactive title content. */
#screens .title-screen > .title-art {
  z-index: 0;
}
#screens .title-screen > .logo,
#screens .title-screen > .title-menu,
#screens .title-screen > .lang-switch {
  z-index: 1;
}

/* Display type leads; compact labels retain an open reading shape. */
#screens .title-menu .btn.small {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 15px;
  font-weight: 800;
}
.seg button,
.hand-row .who,
.hand-row .who small,
.opp-meta {
  font-family: var(--font-body);
  text-transform: none;
}
.seg button {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.hud-action .action-main {
  background: #e4ff35;
  border-color: #e4ff35;
  color: #24152f;
  box-shadow: 0 4px 0 #9cae1c;
}
.panel {
  scrollbar-color: #b899d0 #24152f;
  scrollbar-width: thin;
}
.panel.more-below .panel-foot {
  border-top: 2px solid #9b81ad;
}
.panel.has-foot > .stack {
  padding-bottom: 20px;
}

/* End of game/assets/club-BdAv-ycp.css */
