* { box-sizing: border-box; }
:root {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #edf1ec;
  background: #10191d;
  --felt: #164c41;
  --deep: #0d2624;
  --accent: #c7ee91;
  --muted: #9aa9a6;
  --line: #ffffff12;
}
body { margin: 0; font-size: 16px; background: radial-gradient(ellipse at 50% 0, #1d3333, transparent 65%), #10191d; }
body[data-theme=blue] { --felt: #234d65; --deep: #122a3b; }
body[data-theme=brown] { --felt: #634834; --deep: #35291f; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
button:active:not(:disabled) { transform: translateY(2px); }
.app { max-width: 1160px; margin: auto; min-height: 100dvh; padding: 0 40px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0; background: none; color: #f2f2e9; border: 0; text-align: left; font-size: 24px; font-weight: 800; letter-spacing: -.9px; line-height: 1.1; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 47px; border: 1px solid #bdd79636; background: linear-gradient(145deg,#bada8f22,#a6c78c03); border-radius: 13px; font-size: 33px; color: var(--accent); }
.brand-light { font-weight: 400; color: #b3c0b6; margin-left: 4px; }
.brand small { display: block; font-size: 8px; letter-spacing: 3.3px; color: #95a39b; font-weight: 600; margin-top: 7px; }
.balance { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 7px 6px 14px; border: 1px solid #d6e5a526; border-radius: 30px; background: #ffffff05; color: #f3e2a0; font-weight: 700; font-variant-numeric: tabular-nums; }
.coin { display: grid; place-items: center; width: 22px; height: 22px; border: 1px dashed #e7c572; border-radius: 50%; box-shadow: inset 0 0 0 2px #dfbb6130; color: #e8c168; font-size: 11px; }
.balance-plus { background: #c7ee9118; border-radius: 50%; color: var(--accent); width: 29px; height: 29px; display: grid; place-items: center; font-size: 22px; font-weight: 400; }
main { padding: 36px 0 26px; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(38px,5vw,62px); font-weight: 750; letter-spacing: -2.7px; line-height: 1.06; margin-bottom: 16px; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
p { line-height: 1.5; }
.welcome { display: flex; align-items: center; justify-content: space-between; margin-bottom: 37px; }
.eyebrow { color: #bdc9b8; font-size: 9px; letter-spacing: 2.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.eyebrow>span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px #c7ee9150; }
.sub { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.sub br { display: none; }
.mobile-break { display: none; }
.welcome-seal { width: 125px; height: 125px; border: 1px solid #c7ee9118; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; transform: rotate(12deg); outline: 1px solid #c7ee910a; outline-offset: 8px; margin-right: 22px; color: #c7ee916b; }
.welcome-seal>span { font: 55px Georgia,serif; }
.welcome-seal small { font-size: 7px; font-weight: 700; letter-spacing: 1.8px; margin-top: 6px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.section-heading>span { color: #899b94; font-size: 11px; }
.games { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.game-choice { position: relative; isolation: isolate; min-width: 0; min-height: 240px; border-radius: 20px; border: 1px solid #ffffff16; padding: 17px 19px; background: linear-gradient(145deg,#264c43,#182e2c); color: #f5f2e9; text-align: left; overflow: hidden; }
.game-choice:after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 75% 10%,#d8e9c515,transparent 80%); }
.game-choice[data-game=seka] { background: linear-gradient(140deg,#61493b,#302b29); }
.game-choice[data-game=nardy] { background: linear-gradient(140deg,#4c4e3d,#272f2b); }
.game-choice[data-game=backgammon] { background: linear-gradient(140deg,#3a5063,#202c36); }
.game-choice.active { border-color: #c7ee91ba; box-shadow: 0 0 0 1px #c7ee9140,0 10px 32px #0002; }
.choice-check { position: absolute; right: 13px; top: 13px; background: var(--accent); color: #243424; border-radius: 50%; width: 21px; height: 21px; display: grid; place-items: center; font-size: 12px; opacity: 0; transform: scale(.7); transition: opacity .2s,transform .2s; }
.active .choice-check { opacity: 1; transform: scale(1); }
.tile-tag { position: absolute; top: 18px; left: 18px; font-size: 8px; font-weight: 600; letter-spacing: 1.7px; color: #e2e7d497; }
.tile-copy { display: flex; flex-direction: column; gap: 7px; position: absolute; left: 18px; right: 12px; bottom: 20px; }
.tile-copy strong { font-size: 20px; line-height: 1.1; letter-spacing: -.6px; }
.tile-copy small { color: #d5ded0a6; font-size: 11px; }
.tile-arrow { position: absolute; right: 16px; bottom: 46px; font-size: 15px; color: #dbe5d064; }
.game-art { position: absolute; top: 38px; left: 0; right: 0; height: 125px; pointer-events: none; transition: transform .35s; }
.mini-card { position: absolute; width: 73px; height: 100px; background: linear-gradient(135deg,#fffcf1,#dfdece); border-radius: 8px; box-shadow: 0 9px 16px #0004,inset 0 0 0 1px #ffffff90; font-family: Georgia,serif; color: #243f35; display: block; }
.mini-card b { position: absolute; top: 7px; left: 8px; font-size: 17px; line-height: .85; }
.mini-card b i { display: block; font-style: normal; font-size: 15px; margin-top: 5px; }
.mini-card>span { position: absolute; right: 12px; bottom: 8px; font-size: 45px; line-height: 1; }
.card-rear { left: calc(50% - 61px); top: 13px; transform: rotate(-19deg); background: #c6d2b9; color: #47634c; }
.card-front { left: calc(50% - 12px); top: 5px; transform: rotate(13deg); }
.art-orbit { position: absolute; width: 140px; height: 55px; border: 1px solid #cee6b21a; border-radius: 50%; left: calc(50% - 70px); top: 66px; transform: rotate(-20deg); }
.art-seka .mini-card { width: 59px; height: 86px; }
.art-seka .mini-card>span { font-size: 33px; }
.art-seka .mini-card b { font-size: 15px; }
.seka-left { left: calc(50% - 66px); top: 16px; transform: rotate(-20deg); background: #c6b9a7; }
.seka-mid { left: calc(50% - 29px); top: 5px; transform: rotate(-2deg); background: #e4d8c3; }
.seka-right { left: calc(50% + 9px); top: 14px; transform: rotate(17deg); color: #ae4542; }
.art-chip { position: absolute; width: 37px; height: 17px; background: #b18250; border-radius: 50%; box-shadow: 0 4px 0 #745631,0 6px 8px #0004,inset 0 0 0 4px #d9b074; outline: 2px dashed #f2d59c; outline-offset: -4px; }
.chip-one { left: calc(50% - 56px); top: 93px; transform: rotate(-12deg); }
.chip-two { left: calc(50% - 34px); top: 105px; transform: rotate(-12deg); }
.mini-board { position: absolute; width: 130px; height: 96px; top: 14px; left: calc(50% - 65px); background: #c39d6b; border: 6px solid #886645; border-radius: 6px; transform: rotate(-13deg) skewX(4deg); box-shadow: 1px 5px 0 #5c4938,4px 12px 18px #0005; overflow: hidden; }
.board-teeth { position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 100%,#79583c 0deg 16deg,transparent 16deg 164deg,#79583c 164deg 180deg); background-size: 20px 45px; }
.mini-board:after { content: ''; position: absolute; width: 4px; height: 100%; background: #755b40; left: 50%; top: 0; }
.mini-puck { position: absolute; width: 21px; height: 21px; border-radius: 50%; background: linear-gradient(135deg,#f2e6ca,#d6be92); border: 1px solid #f6e7c5; box-shadow: 0 3px 0 #b49b73,0 5px 5px #0004,inset 0 0 0 3px #d2bb972e; }
.puck-one { left: 10px; top: 8px; }.puck-two { left: 10px; top: 25px; }.puck-three { left: 10px; top: 42px; }
.dark-puck { background: linear-gradient(135deg,#4d5147,#252d2b); border-color: #5b6052; box-shadow: 0 3px 0 #202521,0 5px 5px #0004,inset 0 0 0 3px #8d977322; }
.puck-four { right: 10px; bottom: 7px; }.puck-five { right: 10px; bottom: 25px; }
.art-die { position: absolute; background: linear-gradient(135deg,#fffdf0,#d8dbcf); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); gap: 4px; box-shadow: 3px 6px 0 #b5bbaf,5px 14px 20px #0005,inset 0 0 0 1px #fff; }
.art-die i { background: #324e50; border-radius: 50%; box-shadow: inset 0 1px 2px #0006; }
.art-die i:nth-child(1){grid-area:1/1}.art-die i:nth-child(2){grid-area:1/3}.art-die i:nth-child(3){grid-area:2/2}.art-die i:nth-child(4){grid-area:3/1}.art-die i:nth-child(5){grid-area:3/3}
.little-die { width: 41px; height: 41px; padding: 7px; gap: 3px; top: 79px; left: calc(50% + 24px); border-radius: 8px; transform: rotate(16deg); }
.die-large { width: 76px; height: 76px; top: 9px; left: calc(50% - 54px); transform: rotate(-18deg); }
.die-small { width: 57px; height: 57px; padding: 9px; top: 52px; left: calc(50% + 10px); transform: rotate(17deg); }
.die-small i:nth-child(2){grid-area:2/2}.die-small i:nth-child(3){grid-area:3/3}
.floating-puck { left: calc(50% - 67px); top: 100px; width: 28px; height: 19px; transform: rotate(14deg); }
.floating-puck-two { left: calc(50% + 39px); top: 12px; width: 29px; height: 21px; transform: rotate(-15deg); }
.lobby { display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid #ffffff13; border-radius: 20px; margin-top: 22px; background: #1b292a80; overflow: hidden; }
.play-panel { padding: 25px; }
.lobby-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 17px; }
.lobby-heading>span:not(.ready-dot) { color: #a0b19f; font-size: 9px; letter-spacing: 1.6px; }
.ready-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.lobby-heading h2 { margin: 0 0 0 auto; font-size: 16px; }
.primary,.secondary,.action { min-height: 49px; padding: 12px 18px; border-radius: 11px; font-weight: 650; border: 1px solid transparent; }
.primary,.action { background: linear-gradient(110deg,#d4f4ad,#b9df88); color: #213225; box-shadow: 0 4px 12px #b5df8410,inset 0 1px 0 #edffce; }
.secondary { background: #ffffff04; border-color: #ffffff20; color: #e7ece3; }
.primary:disabled,.secondary:disabled,.action:disabled { opacity: .5; }
.play-buttons { display: grid; grid-template-columns: 1fr; gap: 9px; }
.play-buttons button { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 15px; }
.play-buttons button>span { font-size: 21px; line-height: 1; font-weight: 400; }
.play-note { font-size: 11px; color: #81968a; margin: 11px 0 0; }
#joinForm { border-left: 1px solid var(--line); padding: 29px 25px; display: flex; flex-direction: column; justify-content: center; background: #ffffff02; }
#joinForm label { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.join-icon { color: #b8c7a8; font-size: 21px; }
#joinForm p { font-size: 12px; color: #8fa097; margin: 9px 0 16px; }
.join { display: flex; gap: 8px; }
.join input { min-width: 0; width: 100%; background: #101b1d; color: #e5eade; border: 1px solid #ffffff18; padding: 12px; border-radius: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.join input::placeholder { color: #71837a; font-size: 12px; letter-spacing: .5px; }
.join button { min-height: 46px; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
.join button>span { margin-left: 5px; color: #b6c8a6; }
.home-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 18px; }
.foot { font-size: 11px; color: #82978c; margin: 0; }
.foot>span { font-size: 18px; color: #a2b59a; vertical-align: -1px; margin-right: 4px; }
.text-btn { background: none; border: 0; color: #c8d4bc; min-height: 44px; padding: 8px 3px; font-size: 13px; }
#rulesBtn { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
#rulesBtn>span { border: 1px solid #b8c5af55; border-radius: 50%; width: 17px; height: 17px; display: grid; place-items: center; font-size: 11px; }
.hidden { display: none !important; }
#game { max-width: 780px; margin: auto; }
.game-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.game-head h2 { font-size: 21px; margin: 0; }
.game-head .secondary { min-height: 44px; padding: 9px 14px; font-size: 14px; }
.room-line { text-align: center; color: var(--muted); font-size: 12px; margin: 5px 0; }
#copyCode { letter-spacing: 1px; color: var(--accent); font-size: 12px; }
.opponent { display: flex; align-items: center; justify-content: center; min-height: 40px; gap: 9px; text-align: center; font-size: 14px; font-weight: 600; color: #d6e2d2; }
.opponent:before { content: '♣'; font-family: Georgia,serif; font-size: 22px; color: #cee4bb; width: 34px; height: 34px; border: 1px solid #c3dcaa30; border-radius: 50%; display: grid; place-items: center; background: #c3dcaa0c; flex: none; }
.status { font-size: 18px; font-weight: 600; text-align: center; min-height: 56px; padding: 14px 2px; letter-spacing: -.3px; }
.board { position: relative; min-height: 285px; padding: 22px 16px; border-radius: 26px; border: 1px solid #cce2a52e; background: radial-gradient(ellipse at 50% 25%,#ffffff08,transparent 70%),linear-gradient(145deg,var(--felt),var(--deep)); box-shadow: inset 0 0 0 5px #10262455,inset 0 0 50px #0002,0 18px 35px #0002; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 17px; }
.board-info { width: 100%; text-align: center; color: #d2dfb9; font-size: 13px; margin-bottom: 4px; }
.board>p { color: #b9cdb6; font-size: 14px; margin: 20px 0; text-align: center; }
.card { position: relative; background: linear-gradient(135deg,#fffdf2,#eeedde); color: #1f3a30; border: 1px solid #fffffc; border-radius: 9px; min-width: 60px; width: 78px; height: 112px; display: inline-flex; flex-direction: column; align-items: center; justify-content: space-around; font: bold 29px Georgia,serif; box-shadow: 0 7px 10px #0004; padding: 6px; flex: none; }
.card>span:first-child { align-self: flex-start; font-size: 21px; line-height: .9; }
.card>span:last-child { font-size: 43px; line-height: 1; padding-bottom: 4px; }
.card.red { color: #b94f4e; }
.card.legal { outline: 2px solid #d3f4a5; outline-offset: 3px; box-shadow: 0 9px 16px #0004; cursor: pointer; }
.hand .card:disabled { filter: brightness(.72); }
.card.back { background: repeating-linear-gradient(45deg,#39574d 0 3px,#526e5838 3px 5px),#294437; border: 4px solid #c8cfb7; box-shadow: 0 8px 15px #0003,inset 0 0 0 2px #294437,inset 0 0 0 3px #aec69666; }
.pair { position: relative; width: 95px; height: 135px; }
.pair .card+.card { position: absolute; top: 19px; left: 16px; transform: rotate(9deg); }
.hand { display: flex; gap: 11px; overflow-x: auto; padding: 23px 8px 20px; min-height: 154px; align-items: center; justify-content: safe center; scrollbar-width: thin; scrollbar-color: #a1bb8855 transparent; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.action { min-width: 136px; }
.danger { background: #633b3b; color: #f7d4ce; border-color: #b36e6b40; box-shadow: none; }
.hint { max-width: 540px; margin: 17px auto; font-size: 13px; color: var(--muted); text-align: center; min-height: 23px; }
.network { color: #ead39b; font-size: 13px; text-align: center; }
.result { width: 100%; text-align: center; font-size: 27px; font-weight: 650; color: #e6f5c1; margin-bottom: 20px; }
.nardy-wrap { width: 100%; }
.nardy-board { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); background: #b4986c; border: 7px solid #51463a; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 20px #0004,inset 0 0 0 1px #eedbbc; }
.point { position: relative; background: #c2a77d; color: #534434; border: 0; border-right: 1px solid #8e764b44; min-height: 175px; display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; gap: 4px; font-size: 11px; isolation: isolate; }
.point:before { content: ''; position: absolute; inset: 26px 1px 0; clip-path: polygon(0 0,100% 0,50% 100%); background: #7a6650; z-index: -1; }
.point:nth-child(even):before { background: #eddbb6; }
.point.bottom { border-top: 9px solid #51463a; flex-direction: column-reverse; }
.point.bottom:before { transform: rotate(180deg); }
.point.allowed { box-shadow: inset 0 0 0 2px #e5ffc0; background: #c9c88c; }
.checker { width: clamp(16px,4vw,34px); height: clamp(16px,4vw,34px); min-height: 16px; border-radius: 50%; border: 1px solid #f5e9ca; background: linear-gradient(135deg,#f7ebd3,#d7c29c); box-shadow: 0 3px 0 #a38d65,0 5px 4px #0003,inset 0 0 0 3px #b89f6e26; display: grid; place-items: center; color: #392916; font-size: 11px; }
.checker.black { background: linear-gradient(135deg,#51574b,#2d3933); color: #fff; border-color: #64735a; box-shadow: 0 3px 0 #26312a,0 5px 4px #0004,inset 0 0 0 3px #c2d09d15; }
.checker-count { position: absolute; bottom: 8px; background: #f3e7cf; border-radius: 8px; padding: 2px 4px; color: #2f3929; font-weight: bold; }
.bottom .checker-count { bottom: auto; top: 8px; }
.nardy-summary { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #c1d0b4; padding: 17px 0 10px; }
.dice { width: 100%; padding: 10px 8px; text-align: center; font-size: 22px; color: #e2efcf; font-variant-numeric: tabular-nums; }
.move-choice { margin: 5px; }
.nardy-game .board { padding: 12px; display: block; min-height: 0; border-radius: 20px; }
.nardy-game .hand { display: none; }
.nardy-game .actions { margin-top: 20px; }
dialog { width: min(460px,calc(100% - 28px)); max-height: 88dvh; padding: 28px; background: linear-gradient(145deg,#233432,#172625); color: #e4ebdc; border: 1px solid #d4e5bd26; border-radius: 22px; box-shadow: 0 25px 90px #0008; }
dialog::backdrop { background: #070f14ba; backdrop-filter: blur(8px); }
.close { float: right; min-height: 40px; min-width: 40px; margin: -14px -12px 0 0; padding: 0; border: 0; background: #ffffff06; color: #b5c3ad; border-radius: 50%; font-size: 26px; }
dialog h2 { padding-right: 28px; font-size: 24px; margin-bottom: 23px; }
dialog h3 { font-size: 16px; margin-top: 25px; }
dialog p,dialog li { font-size: 15px; line-height: 1.6; color: #b5c3af; }
dialog ol { padding-left: 20px; }dialog li { margin-bottom: 12px; }
dialog .primary { width: 100%; margin: 7px 0; }
dialog .card { margin: 7px; }
.pack { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #ffffff05; padding: 12px; border-radius: 11px; margin: 10px 0; font-size: 14px; }
.pack button { min-width: 110px; }
.amount { font-size: 28px; font-weight: 700; color: var(--accent); }
.fine { font-size: 12px !important; color: #8b9d89; }
.theme-row { display: flex; gap: 8px; flex-wrap: wrap; }.theme-row button { flex: 1; font-size: 13px; padding: 12px; }
#toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translate(-50%,10px); background: #e5f0cf; color: #253c2b; border: 1px solid #f1ffda; border-radius: 12px; max-width: 92%; width: max-content; padding: 13px 18px; box-shadow: 0 10px 35px #0005; opacity: 0; pointer-events: none; transition: opacity .2s,transform .2s; font-size: 14px; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
#connection { color: #e7c789; font-size: 14px; text-align: center; }
@media(hover:hover) {
  .game-choice:hover { border-color: #d5e6bd66; transform: translateY(-4px); }
  .game-choice:hover .game-art { transform: translateY(-5px) rotate(-2deg); }
  .primary:hover,.action:not(.danger):hover { box-shadow: 0 5px 22px #c7ee9126; filter: brightness(1.05); }
  .secondary:hover,.balance:hover { background: #ffffff0d; border-color: #ffffff40; }
  .hand .card.legal:hover { transform: translateY(-7px); }
}
@media(max-width:950px) {
  .app { padding: 0 28px; }
  .games { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-choice { min-height: 217px; }
  .game-art { top: 30px; }
  .lobby { grid-template-columns: 1fr 1fr; }
}
@media(max-width:600px) {
  .app { padding: 0 20px; }
  header { padding: 20px 0; }
  .brand { font-size: 22px; gap: 9px; }.brand-mark { width: 39px; height: 42px; font-size: 29px; border-radius: 11px; }
  .brand small { font-size: 7px; letter-spacing: 2.8px; margin-top: 6px; }
  .balance { gap: 7px; padding: 5px 5px 5px 10px; font-size: 14px; min-height: 40px; }.coin { width: 18px; height: 18px; }.balance-plus { width: 26px; height: 26px; font-size: 20px; }
  main { padding: 28px 0 18px; }
  .welcome { margin-bottom: 25px; }.welcome-seal { display: none; }
  h1 { font-size: 38px; letter-spacing: -1.8px; margin-bottom: 13px; }.mobile-break { display: none; }.eyebrow { font-size: 8px; letter-spacing: 1.8px; margin-bottom: 15px; }.sub { font-size: 12px; line-height: 1.6; }.sub br { display: inline; }
  .section-heading { margin-bottom: 13px; }.section-heading h2 { font-size: 15px; }.section-heading>span { font-size: 10px; }
  .games { gap: 12px; }.game-choice { min-height: 189px; border-radius: 16px; padding: 14px; }.tile-tag { top: 14px; left: 14px; font-size: 7px; letter-spacing: 1.2px; }.choice-check { width: 18px; height: 18px; right: 10px; top: 10px; font-size: 10px; }
  .game-art { top: 23px; height: 116px; transform: scale(.86); transform-origin: center center; }.tile-copy { left: 14px; bottom: 16px; gap: 6px; }.tile-copy strong { font-size: 17px; letter-spacing: -.5px; }.tile-copy small { font-size: 9px; }.tile-arrow { bottom: 36px; right: 12px; font-size: 12px; }
  .lobby { grid-template-columns: 1fr; margin-top: 18px; border-radius: 17px; }.play-panel { padding: 18px; }.lobby-heading { margin-bottom: 14px; }.lobby-heading h2 { font-size: 15px; }.lobby-heading>span:not(.ready-dot) { font-size: 8px; }
  .play-buttons { gap: 9px; }.play-buttons button { font-size: 14px; min-height: 48px; }.play-note { font-size: 10px; margin-top: 10px; }
  #joinForm { border-left: 0; border-top: 1px solid var(--line); padding: 17px 18px 20px; }#joinForm label { font-size: 13px; }#joinForm p { font-size: 11px; margin: 5px 0 12px; }.join-icon { font-size: 19px; }.join input { font-size: 16px; }
  .home-footer { flex-direction: column-reverse; padding-top: 9px; gap: 2px; }.foot { font-size: 10px; }.foot>span { font-size: 15px; }
  .game-head h2 { font-size: 17px; }.game-head .secondary { padding: 9px 11px; font-size: 12px; }.status { font-size: 16px; min-height: 54px; }
  .board { min-height: 255px; padding: 18px 10px; border-radius: 22px; gap: 13px; }.board-info { font-size: 12px; }.card { width: 64px; min-width: 58px; height: 96px; border-radius: 8px; }.card>span:first-child { font-size: 19px; }.card>span:last-child { font-size: 36px; }.pair { width: 78px; height: 117px; }.hand { min-height: 139px; gap: 10px; }.hint { font-size: 12px; margin-top: 15px; }.action { font-size: 14px; min-width: 120px; }
  .nardy-game .board { padding: 9px 5px; border-radius: 15px; }.nardy-board { border-width: 4px; border-radius: 5px; }.point { min-height: 140px; padding: 6px 0 3px; font-size: 10px; gap: 3px; }.point.bottom { border-top-width: 7px; }.point:before { inset: 23px 1px 0; }.nardy-summary { font-size: 10px; padding: 14px 3px 7px; }.dice { font-size: 20px; }.checker { width: clamp(15px,4vw,25px); height: clamp(15px,4vw,25px); }.checker-count { font-size: 10px; padding: 1px 3px; }
  dialog { padding: 25px 20px; }dialog h2 { font-size: 22px; }
}
@media(max-width:359px) {
  .app { padding: 0 14px; }.brand { font-size: 20px; }.brand-mark { width: 34px; height: 38px; }.brand small { letter-spacing: 2.3px; }.balance { gap: 5px; font-size: 13px; }
  h1 { font-size: 33px; }.sub { font-size: 11px; }
  .games { gap: 10px; }.game-choice { min-height: 178px; }.game-art { transform: scale(.75); top: 17px; }.tile-copy { left: 11px; right: 6px; }.tile-copy strong { font-size: 15px; }.tile-copy small { font-size: 8px; }.tile-arrow { display: none; }.tile-tag { left: 11px; font-size: 6px; }.point { min-height: 124px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
