@import url("/fonts.css");
:root {
  --paper: #f4f3ed;
  --surface: #fffefa;
  --ink: #252820;
  --muted: #72766b;
  --line: #dddfd5;
  --green: #c5f567;
  --forest: #34473a;
  --purple: #dfd5f0;
  --orange: #ff9977;
  --radius: 22px;
  --small: 12px;
  --shadow: 0 18px 70px #232b1512;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #608a24;
  outline-offset: 4px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  border: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.055em;
}
h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.8rem);
  line-height: 1.04;
  font-weight: 750;
}
h2 {
  font-size: 1.7rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: var(--muted);
}
.skip {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 50;
  padding: 14px;
  background: var(--green);
  border-radius: 10px;
}
.skip:focus {
  top: 10px;
}
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  max-width: 1800px;
  margin: auto;
  min-height: 100vh;
}
.sidebar {
  padding: 38px 24px 26px;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -1.4px;
}
.brand-line {
  display: block;
}
.brand-dot {
  color: #739c34;
}
.brand-icon {
  display: flex;
  position: relative;
  background: var(--green);
  width: 43px;
  height: 47px;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  border-radius: 13px;
  padding-bottom: 7px;
  flex-shrink: 0;
}
.brand-icon span {
  position: absolute;
  font-size: 22px;
  right: 1px;
  top: 0;
}
.nav-label {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.4px;
  color: #909286;
  margin-top: 32px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
  margin-top: -18px;
}
.sidebar nav a {
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 12px;
  border-radius: 10px;
  transition: background 0.18s;
}
.sidebar nav a span {
  font-size: 21px;
  width: 23px;
  text-align: center;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: #e6e9dd;
}
.sidebar-note {
  margin-top: auto;
  padding: 20px 17px;
  background: #e9ecdf;
  border-radius: 16px;
}
.sidebar-note .spark {
  display: block;
  font-size: 28px;
  margin-bottom: 13px;
}
.sidebar-note strong {
  font-size: 13px;
}
.sidebar-note p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.sidebar-note a {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  margin-top: 16px;
}
.sidebar-footer {
  font-size: 8px;
  letter-spacing: 1.2px;
  line-height: 2;
  color: var(--muted);
}
.sidebar-footer span {
  letter-spacing: 0;
}
.main-shell {
  min-width: 0;
}
.topbar {
  height: 91px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.breadcrumb {
  font-size: 11px;
  font-weight: 650;
}
.breadcrumb span {
  color: var(--muted);
  font-weight: 450;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  font-size: 11px;
  font-weight: 650;
  padding: 8px 0;
}
.avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 12px;
  flex-shrink: 0;
}
.avatar.small {
  width: 31px;
  height: 31px;
  font-size: 10px;
}
.avatar:nth-child(3n) {
  background: var(--green);
}
.avatar:nth-child(3n + 1) {
  background: #f7c7ad;
}
main {
  padding: 38px 48px 20px;
  max-width: 1320px;
  margin: auto;
  min-height: calc(100vh - 165px);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 750;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-end;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 33px;
  letter-spacing: -1.3px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.date-label {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 12px;
  white-space: nowrap;
}
.hero {
  background: var(--forest);
  color: #f6f5e9;
  border-radius: var(--radius);
  min-height: 374px;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  isolation: isolate;
}
.hero-copy {
  padding: 39px 0 34px 36px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  margin: 22px 0 17px;
  font-size: clamp(2.7rem, 4.2vw, 4.4rem);
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.hero-copy > p {
  font-size: 12px;
  max-width: 280px;
  color: #d0d7ca;
  line-height: 1.75;
}
.hero .button {
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 13px 19px;
  border-radius: 10px;
  background: var(--ink);
  color: #fffefa;
  font-weight: 700;
  font-size: 12px;
  transition:
    transform 0.18s,
    background 0.18s;
  line-height: 1.3;
}
.button:hover {
  transform: translateY(-2px);
  background: #3d4235;
}
.button.lime {
  background: var(--green);
  color: var(--ink);
}
.button.lime:hover {
  background: #d6ff89;
}
.button.outline {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.button.white {
  background: var(--surface);
  color: var(--ink);
}
.button.full {
  width: 100%;
}
.button.small {
  min-height: 39px;
  font-size: 11px;
  padding: 10px 14px;
}
.button.danger {
  background: #f8e9e3;
  color: #903a23;
}
.hero-art {
  position: relative;
  min-height: 374px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit {
  position: absolute;
  border: 1px solid #71826866;
  border-radius: 50%;
  width: 340px;
  height: 340px;
  transform: rotate(-23deg) scaleX(1.15);
  animation: orbit-in 1.2s ease both;
}
.orbit.second {
  width: 250px;
  height: 250px;
}
.orbit.third {
  width: 430px;
  height: 430px;
  opacity: 0.5;
}
.match-ticket {
  width: 248px;
  background: #f8f7ee;
  color: var(--ink);
  border-radius: 16px;
  transform: rotate(-7deg);
  padding: 22px;
  box-shadow: 0 25px 35px #101b202e;
  z-index: 1;
  animation: ticket-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both 0.15s;
}
.ticket-top {
  font-size: 8px;
  display: flex;
  justify-content: space-between;
  font-weight: 750;
  letter-spacing: 0.8px;
}
.ticket-top span:last-child {
  color: #60883c;
}
.ticket-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 27px 0 18px;
}
.team-badge {
  width: 63px;
  height: 70px;
  border-radius: 15px 15px 28px 28px;
  background: #d4dfee;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 800;
  border: 1px solid #becddc;
  transform: rotate(4deg);
}
.team-badge.coral {
  background: #ffcdb8;
  border-color: #efb69e;
  transform: rotate(-3deg);
}
.ticket-teams > span {
  font-size: 10px;
  color: #8e9388;
}
.ticket-title {
  font-size: 21px;
  letter-spacing: -0.8px;
  font-weight: 800;
}
.ticket-sub {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.ticket-bottom {
  margin-top: 22px;
  border-top: 1px dashed #d5d6c9;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
}
.ticket-bottom b {
  font-size: 11px;
}
.floating-chip {
  position: absolute;
  z-index: 3;
  background: var(--green);
  border: 5px solid #b5e951;
  border-radius: 50%;
  width: 77px;
  height: 77px;
  display: grid;
  place-items: center;
  font-size: 39px;
  font-weight: 750;
  right: 23px;
  top: 55px;
  transform: rotate(15deg);
  box-shadow: 0 8px 0 #7f9e41;
  animation: chip-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}
.floating-note {
  position: absolute;
  bottom: 44px;
  right: 15px;
  background: var(--purple);
  color: var(--ink);
  border-radius: 10px;
  padding: 13px 17px;
  transform: rotate(6deg);
  font-size: 11px;
  font-weight: 750;
  z-index: 3;
  box-shadow: 0 6px 20px #17261722;
  animation: ticket-in 0.9s ease 0.35s both;
}
.art-star {
  position: absolute;
  left: 15px;
  top: 41px;
  font-size: 45px;
  color: var(--green);
  animation: star-in 1.1s ease 0.1s both;
}
.hero-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: #cfdbc4;
  margin-top: 19px;
}
.avatar-stack {
  display: flex;
  padding-left: 5px;
}
.avatar-stack .avatar {
  width: 24px;
  height: 24px;
  font-size: 8px;
  margin-left: -5px;
  border: 2px solid var(--forest);
}
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 18px;
}
.action-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 21px;
  text-align: left;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.action-card:hover {
  border-color: #90a178;
  transform: translateY(-2px);
}
.action-card .action-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e6ecd9;
  font-size: 22px;
  flex-shrink: 0;
}
.action-card:nth-child(2) .action-icon {
  background: #eee7f4;
}
.action-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}
.action-card small {
  font-size: 10px;
  display: block;
}
.action-card .arrow {
  margin-left: auto;
  font-size: 20px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 16px;
}
.section-heading h2 {
  font-size: 21px;
  letter-spacing: -0.8px;
}
.text-button {
  background: none;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.idea-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  text-align: left;
  padding: 0;
  transition: transform 0.2s;
}
.idea-card:hover {
  transform: translateY(-4px);
}
.idea-art {
  height: 117px;
  background: #e5e9db;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.idea-art.court {
  background: #dae2d3;
}
.pitch {
  position: absolute;
  inset: 19px 31px;
  border: 1px solid #a7b49a;
  border-radius: 4px;
  transform: rotate(-12deg);
  width: calc(100% - 62px);
  height: 83px;
}
.pitch:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid #a7b49a;
}
.pitch:after {
  content: "";
  position: absolute;
  width: 31px;
  height: 31px;
  border: 1px solid #a7b49a;
  border-radius: 50%;
  top: 24px;
  left: calc(50% - 16px);
}
.ball {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fbfcf6;
  box-shadow: 8px 10px 0 #b4c0a46b;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 25px;
  transform: rotate(-18deg);
}
.idea-art.game {
  background: #e9ddf3;
}
.controller {
  width: 88px;
  height: 48px;
  border-radius: 18px 18px 25px 25px;
  background: #6a577c;
  transform: rotate(-13deg);
  box-shadow: 4px 7px 0 #beaecb;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #f3e9fd;
  font-size: 29px;
  font-weight: 400;
}
.controller i {
  font-size: 19px;
  font-style: normal;
  color: #d5f18c;
  letter-spacing: -1px;
}
.idea-art.life {
  background: #f3dfc5;
}
.cup {
  font-size: 50px;
  transform: rotate(11deg);
  filter: drop-shadow(5px 7px 0 #dbc39c);
}
.idea-label {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 8px;
  font-weight: 750;
  background: #fff9;
  padding: 5px 7px;
  border-radius: 6px;
}
.idea-copy {
  padding: 16px;
}
.idea-copy h3 {
  font-size: 13px;
  letter-spacing: -0.2px;
  margin-bottom: 7px;
}
.idea-copy p {
  font-size: 10px;
  color: var(--muted);
}
.idea-copy .idea-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  margin-top: 16px;
  color: #6c785d;
}
.info-strip {
  margin: 23px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 10px;
  color: var(--muted);
}
.info-strip > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.info-strip b {
  font-size: 17px;
  color: #7a865f;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 25px 48px 30px;
  font-size: 9px;
  color: #85897e;
  max-width: 1320px;
  margin: auto;
}
.page-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mobile-nav,
.mobile-brand {
  display: none;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.panel + .panel {
  margin-top: 18px;
}
.panel h2 {
  font-size: 21px;
}
.panel p {
  font-size: 13px;
  color: var(--muted);
}
.empty-state {
  padding: 42px 20px;
  text-align: center;
}
.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #e8eddd;
  margin: 0 auto 18px;
  font-size: 30px;
}
.empty-state h2 {
  font-size: 22px;
}
.empty-state p {
  max-width: 370px;
  margin: 11px auto 20px;
  font-size: 12px;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.empty-state .button-row {
  justify-content: center;
}
.lobby-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lobby-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  display: block;
  transition: transform 0.2s;
}
.lobby-card:hover {
  transform: translateY(-3px);
}
.lobby-card .lobby-symbol {
  width: 46px;
  height: 46px;
  background: var(--green);
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.lobby-card:nth-child(even) .lobby-symbol {
  background: var(--purple);
}
.lobby-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.lobby-card p {
  font-size: 10px;
  color: var(--muted);
}
.lobby-card .link-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 25px;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 23px;
}
.room-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}
.room-header h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  overflow-wrap: anywhere;
}
.room-header p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 22px;
}
.room-layout .panel {
  padding: 23px;
}
.room-side {
  display: grid;
  align-content: start;
  gap: 18px;
}
.room-side .panel {
  margin: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 750;
  border-radius: 7px;
  background: #e7efdb;
  color: #52673b;
  letter-spacing: 0.2px;
}
.badge.orange {
  background: #ffe5d2;
  color: #8a5525;
}
.badge.purple {
  background: #eee5f5;
  color: #795c8c;
}
.badge.dark {
  background: #e5e6e0;
  color: #69715e;
}
.round-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 17px;
}
.round-head small {
  font-size: 10px;
}
.round-title {
  font-size: 26px !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.rule {
  margin: 12px 0 21px !important;
  font-size: 11px !important;
  line-height: 1.6;
}
.pot-bar {
  background: var(--forest);
  color: var(--surface);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  margin: 20px 0;
}
.pot-bar small {
  color: #d2dacb;
  font-size: 9px;
  display: block;
  margin-bottom: 5px;
}
.pot-bar b {
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1px;
}
.pot-bar b span {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--green);
}
.pot-bar .right {
  text-align: right;
}
.pot-bar .right b {
  font-size: 16px;
  letter-spacing: 0;
}
.option {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 9px;
  position: relative;
  overflow: hidden;
  font-size: 12px;
  isolation: isolate;
}
.option.selected {
  border: 2px solid #719941;
  padding: 13px;
  background: #f0f6e7;
}
.option input {
  accent-color: #638c30;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
.option strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.option small {
  font-size: 10px;
}
.option .share {
  margin-left: auto;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.meter {
  height: 4px;
  background: #e4e6dd;
  border: 0;
  width: 100%;
  border-radius: 4px;
  margin: 6px 0 1px;
}
.meter::-webkit-progress-bar {
  background: #e4e6dd;
  border-radius: 4px;
}
.meter::-webkit-progress-value {
  background: #8bb252;
  border-radius: 4px;
}
.meter::-moz-progress-bar {
  background: #8bb252;
}
.stake-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: 18px;
}
.stake-row label {
  flex: 1;
  min-width: 0;
}
.stake-row button {
  flex: 1;
}
.helper {
  font-size: 10px !important;
  line-height: 1.6;
  margin-top: 10px !important;
  color: var(--muted);
}
.notice {
  padding: 15px;
  border-radius: 12px;
  background: #ebefdf;
  color: #536040;
  font-size: 12px;
  line-height: 1.65;
  margin: 17px 0;
}
.notice.warning {
  background: #fcf0da;
  color: #8a642e;
}
.notice.error {
  background: #fbe8e4;
  color: #9d3e29;
}
.notice.success {
  background: #e4f1dc;
  color: #416831;
}
.notice p {
  color: inherit;
  font-size: 12px;
}
.leader {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #e9eae2;
}
.leader:last-child {
  border-bottom: 0;
}
.leader .rank {
  width: 16px;
  color: #9a9f90;
  font-size: 11px;
}
.leader .name {
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
  flex: 1;
}
.leader .name small {
  display: block;
  font-weight: 450;
  font-size: 9px;
  margin-top: 4px;
}
.leader .score {
  text-align: right;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.leader .score small {
  font-size: 8px;
  display: block;
  font-weight: 450;
}
.member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}
.member-pill {
  background: #f0f1e9;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 10px;
}
.member-pill b {
  color: #719345;
  margin-left: 5px;
}
.room-side h3 {
  font-size: 15px;
}
.room-side p {
  font-size: 10px;
  margin-top: 8px;
}
.transfer {
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 13px;
  margin-top: 12px;
}
.transfer-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
}
.transfer-line strong {
  white-space: nowrap;
}
.transfer .helper {
  margin-bottom: 10px;
}
.transfer.done {
  background: #f1f6e9;
}
.result-number {
  font-size: 47px;
  font-weight: 750;
  letter-spacing: -2px;
  margin: 14px 0 4px;
}
.round-history details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.round-history summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}
.round-history p {
  font-size: 11px;
  margin-top: 9px;
}
.prose {
  max-width: 780px;
}
.prose h1 {
  font-size: 40px;
  margin-bottom: 15px;
}
.prose .intro {
  font-size: 14px;
  margin-bottom: 30px;
  color: var(--muted);
}
.rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rule-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.rule-card .number {
  font-size: 11px;
  color: #8a927c;
  margin-bottom: 20px;
  display: block;
}
.rule-card h2 {
  font-size: 21px;
  margin-bottom: 12px;
}
.rule-card p {
  font-size: 12px;
  color: var(--muted);
}
.prose details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.prose summary {
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.6;
}
.prose details p {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.prose > .panel {
  margin-top: 22px;
}
.profile-card {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}
.profile-card .avatar {
  width: 70px;
  height: 70px;
  font-size: 26px;
}
.profile-card h2 {
  font-size: 27px;
}
.profile-card p {
  font-size: 12px;
  margin-top: 6px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.profile-grid h3 {
  margin-bottom: 12px;
}
.profile-grid .button {
  margin-top: 18px;
}
.initial-loading {
  padding: 100px 20px;
  text-align: center;
  color: var(--muted);
}
.initial-loading .spark {
  display: block;
  font-size: 40px;
  color: #6d8946;
  margin-bottom: 15px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  padding: 32px;
  width: min(480px, calc(100vw - 28px));
  max-height: 90dvh;
  box-shadow: 0 30px 120px #0003;
  overflow-y: auto;
}
dialog::backdrop {
  background: #20291d73;
  backdrop-filter: blur(5px);
}
dialog[open] {
  animation: modal-in 0.2s ease-out;
}
.close {
  position: absolute;
  right: 17px;
  top: 14px;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #eeeee6;
  font-size: 24px;
}
.modal-eyebrow {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.4px;
  color: #7b875f;
  margin-bottom: 14px;
}
dialog h2 {
  font-size: 30px;
  margin-bottom: 12px;
  padding-right: 20px;
}
dialog .intro {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 22px;
}
form {
  display: grid;
  gap: 15px;
}
label.field {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
}
input:not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d7d9cd;
  border-radius: 10px;
  padding: 11px 13px;
  background: #fffefb;
  color: var(--ink);
  font-size: 14px;
}
input:read-only {
  background: #eeefe6;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input::placeholder,
textarea::placeholder {
  color: #a0a395;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  font-size: 11px;
  font-weight: 700;
  padding: 0;
  margin-bottom: 5px;
}
.form-error {
  font-size: 12px;
  color: #9b3e28;
  background: #ffede7;
  padding: 12px;
  border-radius: 10px;
  line-height: 1.55;
}
.form-error:empty {
  display: none;
}
.auth-switch {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.code-display {
  background: #e9eddf;
  padding: 18px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 3px;
  text-align: center;
  margin: 20px 0;
}
.recovery-code {
  word-break: break-all;
  font:
    13px/1.6 ui-monospace,
    monospace;
  padding: 15px;
  background: #eceee4;
  border-radius: 10px;
  user-select: all;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #252d22;
  color: #fffdf3;
  box-shadow: var(--shadow);
  padding: 14px 22px;
  font-size: 12px;
  border-radius: 12px;
  z-index: 100;
  max-width: calc(100vw - 36px);
  width: max-content;
  line-height: 1.5;
}
.toast[hidden] {
  display: none;
}
.fade-in {
  animation: page-in 0.35s ease both;
}
.stack {
  display: grid;
  gap: 16px;
}
.sync-label {
  font-size: 9px;
  color: var(--muted);
  margin-top: 15px;
}
.sync-label:before {
  content: "●";
  color: #83956b;
  margin-right: 5px;
}
.demo-banner {
  background: #e6dcf2;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 11px;
  margin-bottom: 20px;
}
.positive {
  color: #4f792b;
}
.negative {
  color: #a65c43;
}
.disabled-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.5;
}
.confirm-check input {
  width: 17px !important;
  min-height: 17px !important;
  accent-color: #658d33;
  flex-shrink: 0;
}
.inline-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 450;
  margin-left: 8px;
}
@keyframes ticket-in {
  from {
    opacity: 0;
    translate: 0 40px;
    rotate: 13deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}
@keyframes chip-in {
  from {
    opacity: 0;
    translate: 35px -45px;
    rotate: 110deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}
@keyframes orbit-in {
  from {
    opacity: 0;
    scale: 0.8;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
@keyframes star-in {
  from {
    opacity: 0;
    rotate: -100deg;
    scale: 0.4;
  }
  to {
    opacity: 1;
    rotate: 0;
    scale: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  .hero h1 {
    font-size: 73px;
  }
  .hero-art {
    min-height: 420px;
  }
  .match-ticket {
    width: 280px;
    padding: 27px;
  }
  .hero-copy {
    padding: 45px;
  }
  .hero {
    min-height: 420px;
  }
  .floating-chip {
    right: 55px;
  }
  .floating-note {
    right: 50px;
  }
  .cards .idea-art {
    height: 150px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 17px;
  }
  .topbar {
    padding: 0 28px;
  }
  main {
    padding: 30px 28px 15px;
  }
  .page-footer {
    padding: 25px 28px;
  }
  .hero-copy {
    padding: 30px 0 28px 27px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero-art {
    min-height: 355px;
  }
  .match-ticket {
    width: 205px;
    padding: 19px;
  }
  .ticket-title {
    font-size: 18px;
  }
  .team-badge {
    width: 53px;
    height: 60px;
    font-size: 23px;
  }
  .floating-chip {
    right: 6px;
    width: 59px;
    height: 59px;
    font-size: 29px;
    top: 47px;
  }
  .floating-note {
    right: 7px;
    bottom: 36px;
    font-size: 10px;
  }
  .art-star {
    left: 4px;
    font-size: 33px;
  }
  .room-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 15px;
  }
  .room-layout .panel {
    padding: 19px;
  }
  .room-side .leader .avatar {
    display: none;
  }
}
@media (max-width: 850px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 73px;
    padding: 0 24px;
  }
  .mobile-brand {
    display: block;
    font-size: 27px;
    letter-spacing: -1.8px;
    font-weight: 800;
  }
  .mobile-brand span {
    display: inline-block;
    color: #7d9e42;
    font-size: 26px;
    margin-left: 3px;
  }
  .breadcrumb {
    display: none;
  }
  main {
    padding: 27px 24px 12px;
  }
  .page-footer {
    padding: 25px 24px 110px;
  }
  .hero h1 {
    font-size: 55px;
  }
  .match-ticket {
    width: 245px;
    padding: 22px;
  }
  .floating-chip {
    right: 20px;
    top: 42px;
    width: 70px;
    height: 70px;
    font-size: 34px;
  }
  .floating-note {
    right: 20px;
    bottom: 37px;
  }
  .art-star {
    left: 10px;
  }
  .mobile-nav {
    position: fixed;
    display: flex;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 8px 13px calc(8px + env(safe-area-inset-bottom));
    background: #fafaf2f5;
    backdrop-filter: blur(15px);
    border-top: 1px solid #dddfd8;
    z-index: 10;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
  }
  .mobile-nav a {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    min-width: 51px;
    padding: 5px;
    font-size: 9px;
    color: #858a7a;
    font-weight: 650;
  }
  .mobile-nav a > span {
    font-size: 23px;
    line-height: 24px;
  }
  .mobile-nav a.active {
    color: #354824;
  }
  .mobile-nav button {
    background: var(--green);
    border-radius: 16px;
    width: 49px;
    height: 46px;
    font-size: 28px;
  }
  .toast {
    bottom: 95px;
  }
  .room-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .room-side .leader .avatar {
    display: flex;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: 66px;
    padding: 0 20px;
  }
  .account-button {
    font-size: 10px;
  }
  .account-button .avatar {
    width: 28px;
    height: 28px;
  }
  main {
    padding: 25px 19px 8px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 11px;
    margin-top: 7px;
  }
  .date-label {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 22px;
  }
  .hero-copy {
    padding: 29px 27px 0;
  }
  .hero h1 {
    font-size: clamp(32px, 9.1vw, 42px);
    margin: 19px 0 14px;
    letter-spacing: -1.9px;
  }
  .hero-copy > p {
    font-size: 11px;
    max-width: 240px;
  }
  .hero .button {
    margin-top: 22px;
    min-height: 44px;
    padding: 13px 16px;
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .hero-foot {
    display: none;
  }
  .hero-art {
    min-height: 216px;
    margin-top: -2px;
    overflow: hidden;
  }
  .match-ticket {
    width: 192px;
    padding: 15px;
    transform: rotate(-8deg);
    margin-top: 5px;
    margin-left: 19px;
  }
  .ticket-top {
    font-size: 6px;
  }
  .ticket-teams {
    margin: 14px 0 10px;
  }
  .team-badge {
    width: 43px;
    height: 47px;
    font-size: 19px;
    border-radius: 10px 10px 19px 19px;
  }
  .ticket-title {
    font-size: 17px;
  }
  .ticket-sub {
    font-size: 7px;
  }
  .ticket-bottom {
    font-size: 7px;
    margin-top: 13px;
    padding-top: 10px;
  }
  .ticket-bottom b {
    font-size: 9px;
  }
  .orbit {
    width: 235px;
    height: 235px;
    top: 21px;
  }
  .orbit.second {
    width: 170px;
    height: 170px;
    top: 54px;
  }
  .orbit.third {
    width: 310px;
    height: 310px;
    top: -17px;
  }
  .floating-chip {
    width: 62px;
    height: 62px;
    right: 28px;
    top: 23px;
    font-size: 31px;
  }
  .floating-note {
    bottom: 25px;
    right: 19px;
    padding: 10px 12px;
    font-size: 9px;
  }
  .art-star {
    left: 34px;
    top: 69px;
    font-size: 38px;
  }
  .quick-actions {
    gap: 10px;
    margin-top: 13px;
  }
  .action-card {
    padding: 15px 13px;
    gap: 10px;
    align-items: flex-start;
    position: relative;
    min-height: 102px;
    flex-direction: column;
    border-radius: 15px;
  }
  .action-card .action-icon {
    width: 31px;
    height: 31px;
    font-size: 19px;
    border-radius: 9px;
  }
  .action-card strong {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .action-card small {
    font-size: 9px;
  }
  .action-card .arrow {
    position: absolute;
    right: 14px;
    top: 20px;
    font-size: 16px;
  }
  .section-heading {
    margin: 27px 0 14px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .text-button {
    font-size: 10px;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .idea-art {
    height: 86px;
  }
  .idea-copy {
    padding: 12px 10px;
  }
  .idea-copy h3 {
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: -0.2px;
  }
  .idea-copy p {
    font-size: 9px;
  }
  .idea-copy .idea-bottom {
    font-size: 8px;
    margin-top: 11px;
  }
  .idea-label {
    font-size: 6px;
    left: 7px;
    top: 7px;
    padding: 4px 5px;
  }
  .pitch {
    inset: 22px 7px;
    height: 53px;
    width: calc(100% - 14px);
  }
  .pitch:after {
    width: 22px;
    height: 22px;
    top: 15px;
    left: calc(50% - 11px);
  }
  .ball {
    width: 32px;
    height: 32px;
    font-size: 19px;
    margin-top: 8px;
  }
  .controller {
    width: 57px;
    height: 34px;
    border-radius: 12px 12px 18px 18px;
    font-size: 23px;
    margin-top: 9px;
  }
  .controller i {
    font-size: 14px;
  }
  .cup {
    font-size: 35px;
    margin-top: 10px;
  }
  .info-strip {
    font-size: 8px;
    gap: 8px;
    padding-top: 16px;
    margin-top: 20px;
  }
  .info-strip b {
    font-size: 13px;
  }
  .info-strip > span {
    gap: 4px;
  }
  .page-footer {
    padding: 20px 19px 101px;
    font-size: 8px;
    flex-wrap: wrap;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .lobby-list,
  .room-layout,
  .rule-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .room-header h1 {
    font-size: 30px;
  }
  .room-header {
    flex-wrap: wrap;
  }
  .room-header .button-row {
    width: 100%;
  }
  .room-header .button-row .button {
    flex: 1;
  }
  .room-layout {
    gap: 17px;
  }
  .room-layout .panel {
    padding: 21px;
  }
  .room-side {
    gap: 15px;
  }
  .round-title {
    font-size: 25px !important;
  }
  .room-side .panel {
    padding: 21px;
  }
  .panel {
    padding: 23px;
  }
  .prose h1 {
    font-size: 35px;
  }
  .prose .intro {
    font-size: 12px;
  }
  .rule-card {
    padding: 23px;
  }
  .rule-card .number {
    margin-bottom: 12px;
  }
  .rule-card h2 {
    font-size: 23px;
  }
  .rule-card p {
    font-size: 12px;
  }
  .lobby-card {
    padding: 22px;
  }
  .lobby-card .lobby-symbol {
    float: left;
    margin: 0 17px 10px 0;
  }
  .lobby-card .link-line {
    clear: both;
    padding-top: 13px;
    margin-top: 8px;
  }
  .stake-row {
    flex-wrap: wrap;
  }
  .stake-row label,
  .stake-row button {
    min-width: 120px;
  }
  .room-header > div:first-child {
    max-width: 100%;
  }
  .profile-card h2 {
    font-size: 24px;
  }
  dialog {
    padding: 28px 23px;
    border-radius: 22px;
  }
  dialog h2 {
    font-size: 28px;
  }
  .code-display {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 12px;
    min-height: 42px;
  }
  .transfer-line {
    font-size: 11px;
  }
  .mobile-nav a {
    min-width: 46px;
    font-size: 8px;
  }
  .sync-label {
    font-size: 9px;
  }
  .hero-art .match-ticket {
    pointer-events: none;
  }
}
@media (max-width: 360px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero-copy {
    padding-left: 23px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .idea-card {
    display: grid;
    grid-template-columns: 100px 1fr;
  }
  .idea-art {
    height: 100%;
  }
  .idea-copy p {
    font-size: 10px;
  }
  .floating-chip {
    right: 17px;
  }
  .floating-note {
    right: 10px;
  }
  .info-strip {
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Mobile controls stay readable and avoid iOS focus zoom. */
@media (max-width: 600px) {
  input:not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }
  .hero-copy > p {
    font-size: 13px;
    max-width: 265px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .hero .button {
    font-size: 12px;
  }
  .button {
    font-size: 13px;
    min-height: 46px;
  }
  .button.small {
    font-size: 12px;
    min-height: 44px;
  }
  .action-card strong {
    font-size: 12px;
  }
  .action-card small {
    font-size: 10px;
  }
  .idea-copy h3 {
    font-size: 12px;
  }
  .idea-copy p {
    font-size: 10px;
  }
  .helper {
    font-size: 12px !important;
  }
  .rule {
    font-size: 13px !important;
  }
  .option strong {
    font-size: 14px;
  }
  .option small {
    font-size: 12px;
  }
  .option .share {
    font-size: 12px;
  }
  .room-side p {
    font-size: 12px;
  }
  .leader .name {
    font-size: 13px;
  }
  .leader .name small {
    font-size: 11px;
  }
  .member-pill {
    font-size: 12px;
  }
  .round-head small {
    font-size: 11px;
  }
  .badge {
    font-size: 10px;
  }
  .mobile-nav a {
    font-size: 9px;
  }
  .text-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
  }
  .intro {
    font-size: 13px !important;
  }
  .field {
    font-size: 12px !important;
  }
  .confirm-check {
    font-size: 12px;
  }
  .transfer-line {
    font-size: 13px;
  }
  .rule-card p {
    font-size: 13px;
  }
  .prose details p {
    font-size: 13px;
  }
  .prose summary {
    font-size: 14px;
  }
  .sync-label {
    font-size: 10px;
  }
}
.lobby-question {
  margin-top: 12px;
  overflow-wrap: anywhere;
}
/* Keep long display names and lobby titles inside narrow layouts. */
#account-label {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-heading > div {
  min-width: 0;
}
.page-heading h1,
.profile-card h2,
.transfer-line > span:first-child {
  overflow-wrap: anywhere;
}
.transfer-line > span:first-child {
  min-width: 0;
}
:root {
  --muted: #646b5c;
}
@media (max-width: 600px) {
  .mobile-nav a {
    color: #65705c;
  }
  .page-footer {
    color: #68715e;
    font-size: 10px;
  }
  .info-strip {
    font-size: 9px;
  }
  .date-label {
    color: var(--muted);
  }
}
