:root { --ink:#194f49; --ink-soft:#5d7b72; --mint:#d7ece2; --cream:#fffaf0; --coral:#df816f; --line:#93b5a6; --gold:#d1af59; font-family: -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif; color:var(--ink); font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; background:#e1eee6; background-image:linear-gradient(#e0eee4bd,#d9e9e0dd),var(--table-background,url('/assets/skins/mint-pop/table/background.png')); background-size:cover; min-height:100svh; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button { color:inherit; font:inherit; cursor:pointer; }
button:disabled { cursor:default; }
button:focus-visible,a:focus-visible { outline:3px solid #c4604d; outline-offset:5px; }
button { touch-action:manipulation; }
button:not(.playing-card) { min-height:44px; }
a { color:inherit; }
[hidden] { display:none !important; }
.app-header { max-width:1320px; margin:auto; padding:22px 40px 15px; display:flex; align-items:center; gap:28px; border-bottom:1px solid #7aab9b4d; }
.brand { display:flex; align-items:center; gap:11px; text-decoration:none; font-size:21px; font-weight:850; letter-spacing:.04em; flex:1; white-space:nowrap; }
.brand small { display:block; font-size:8px; letter-spacing:.24em; margin-top:5px; opacity:.7; }
.brand-mark { font-family:Georgia,serif; background:var(--ink); color:var(--cream); display:flex; align-items:center; justify-content:center; width:44px; height:49px; font-size:25px; border-radius:6px 12px 6px 12px; transform:rotate(-5deg); position:relative; }
.brand-mark span { color:#dfba63; font-size:12px; position:absolute; top:-7px; right:-5px; }
.tabs { display:flex; background:#f8f8ee6b; padding:4px; border-radius:12px; gap:3px; }
.tab { border:0; background:none; font-size:12px; padding:0 18px; border-radius:9px; color:var(--ink-soft); font-weight:650; }
.tab.active { background:var(--cream); color:var(--ink); box-shadow:0 2px 5px #1c594515; }
.icon-button { width:44px; border:1px solid #97b4a477; background:#fffaf088; border-radius:50%; font-size:22px; }
.ui-icon { display:inline-block; width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; vertical-align:middle; }
.quiet-button .ui-icon { margin-right:5px; width:14px; height:14px; }
.icon-button { display:grid; place-items:center; padding:0; line-height:1; }
.quiet-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; line-height:1; }
.quiet-button .ui-icon { margin:0; flex:0 0 auto; }
.round-label { display:inline-flex; align-items:center; gap:8px; line-height:1; }
.round-label b { margin:0; font-variant-numeric:lining-nums tabular-nums; }
.turn-badge { line-height:1; }
.turn-badge i { flex:0 0 auto; }
main { max-width:1240px; padding:0 30px; margin:auto; }
.view { padding-top:22px; }
.table-heading { display:flex; align-items:center; gap:18px; margin:0 3px 18px; }
.round-label { font-size:10px; font-weight:700; letter-spacing:.15em; padding:8px 12px; border:1px solid #72988b5e; border-radius:6px; }
.round-label b { font-size:14px; margin:0; }
.turn-badge { background:#d77d68; color:#fff9ec; padding:8px 17px; border-radius:8px; font-size:12px; font-weight:750; box-shadow:0 3px 0 #a75d4d20; display:flex; gap:8px; align-items:center; }
.turn-badge i { width:5px; height:5px; background:#fff5d7; border-radius:50%; }
.text-button { padding:6px 8px; border:0; background:none; font-size:11px; color:var(--ink-soft); }
.table-heading .text-button { margin-left:auto; }
.opponents { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.player-mat { background:linear-gradient(120deg,#fffdf4ed,#fbf6e7ed); border:1px solid #7e9d8f6b; border-radius:19px; box-shadow:0 3px 0 #608b7720; position:relative; }
.opponent { padding:12px 17px 14px; }
.seat-heading { display:flex; align-items:center; gap:12px; padding-bottom:8px; margin-bottom:7px; border-bottom:1px solid #a3bbae66; }
.seat-heading h2 { font-family:Georgia,serif; font-size:21px; margin:0; }
.win-dots { display:flex; gap:2px; align-items:center; white-space:nowrap; }
.win-dots { display:inline-flex; align-items:center; gap:4px; line-height:1; }
.win-token { display:block; width:10px; height:10px; fill:#cdd4c5; flex:0 0 auto; }
.win-token.filled { fill:var(--gold); }
.win-dots small { display:block; margin-left:2px; line-height:1; }
.win-dots small { font-size:9px; margin-left:2px; }
.hand-count { margin-left:auto; font-size:9px; color:var(--ink-soft); padding:4px 7px; background:#dde7d8aa; border-radius:8px; white-space:nowrap; }
.field-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.field-pair { display:flex; gap:14px; }
.field-slot { position:relative; }
.place-label { display:block; text-align:center; font-size:10px; letter-spacing:.08em; margin-bottom:6px; font-weight:600; }
.playing-card { --card-width:76px; width:var(--card-width); aspect-ratio:63/88; padding:0; flex-shrink:0; border-radius:7px; border:1.2px solid var(--ink); background:linear-gradient(145deg,white 3%,color-mix(in srgb,var(--card-color),white 66%) 90%); display:block; position:relative; isolation:isolate; overflow:hidden; box-shadow:0 3px 0 #174d3926,0 0 0 3px #fffcf1; transition:box-shadow .15s,transform .15s; }
.playing-card::after { content:""; position:absolute; inset:4px; border:1px solid color-mix(in srgb,var(--card-color),transparent 30%); border-radius:4px; pointer-events:none; z-index:-1; }
.card-art { position:absolute; width:98%; height:82%; object-fit:contain; object-position:center bottom; left:1%; top:4%; z-index:0; pointer-events:none; }
.card-number { position:absolute; left:4px; top:4px; background:var(--ink); color:#fffdf1; border:1.5px solid var(--cream); border-radius:50%; width:27px; height:27px; display:grid; place-items:center; font-family:Georgia,serif; font-weight:700; font-size:23px; z-index:2; line-height:1; }
.card-number svg { display:block; width:100%; height:100%; overflow:visible; }
.card-number text { font-family:system-ui,sans-serif; font-size:30px; font-weight:800; fill:currentColor; }
.card-name { position:absolute; bottom:5px; left:5px; right:5px; min-height:16px; padding:2px 0; background:var(--ink); color:#fffdf1; border-radius:3px; font-size:9px; letter-spacing:.01em; font-weight:700; text-align:center; white-space:nowrap; line-height:1.3; z-index:2; }
.card-name.long-name { font-size:7px; }
.card-decoration { position:absolute; top:10px; right:6px; font-size:12px; color:#d2ab55; z-index:1; }
.card-decoration { width:12px; height:12px; line-height:1; }
.card-decoration svg { display:block; width:100%; height:100%; fill:currentColor; }
.playing-card:hover { transform:translateY(-3px); box-shadow:0 5px 5px #174d3920,0 0 0 3px #fffcf1; }
.score { text-align:center; min-width:53px; }
.score small { display:block; font-size:9px; letter-spacing:.1em; opacity:.7; }
.score b { font-family:Georgia,serif; display:block; font-size:40px; line-height:1.15; font-weight:500; }
.table-center { display:flex; align-items:center; justify-content:space-between; margin:17px auto 19px; padding:0 12%; min-height:95px; gap:30px; }
.deck-area { display:flex; align-items:center; gap:22px; }
.card-back { aspect-ratio:63/88; border-radius:6px; border:3px solid var(--cream); background:repeating-linear-gradient(45deg,transparent 0 8px,#d9e9d12b 8px 9px),#1e6259; background-image:var(--card-back,url('/assets/skins/mint-pop/table/card-back.png')); background-size:100% 100%; box-shadow:0 0 0 1px #397368,0 3px 2px #10362922; position:relative; display:grid; place-items:center; }
.deck { width:61px; box-shadow:-3px 3px 0 var(--cream),-4px 4px 0 #719b89,-6px 6px 0 var(--cream),-7px 7px 0 #719b89; }
.back-emblem { width:70%; aspect-ratio:1; background:#f9f6e8f2; border:1px solid var(--ink); border-radius:50%; display:grid; place-items:center; font:700 22px Georgia,serif; }
.deck-count { position:absolute; bottom:5px; background:var(--cream); border-radius:4px; font-size:8px; padding:2px 5px; white-space:nowrap; }
.deck-count b { font-size:13px; }
.excluded { width:39px; }
.excluded .back-emblem { width:60%; font-size:15px; }
.excluded-wrap small { font-size:8px; display:block; margin-top:6px; text-align:center; color:var(--ink-soft); }
.table-caption { display:flex; flex-direction:column; gap:8px; text-align:center; opacity:.6; }
.table-caption span { font-size:8px; letter-spacing:.2em; }
.table-caption b { font-size:12px; font-weight:500; letter-spacing:.08em; }
.table-flower { font-size:48px; color:#f8f6df; -webkit-text-stroke:1px #82b29f; opacity:.8; }
.table-flower { width:32px; height:32px; fill:none; stroke:#82b29f; stroke-width:1.5; stroke-linecap:round; flex:0 0 auto; }
.own-mat { display:flex; align-items:center; justify-content:center; gap:70px; width:min(680px,100%); margin:0 auto; padding:13px 25px 18px; }
.own-identity h2 { margin:6px 0 9px; font-size:21px; }
.eyebrow { font-size:8px; font-weight:700; letter-spacing:.18em; color:var(--ink-soft); }
.own-mat .playing-card { --card-width:88px; }
.own-mat .field-pair { gap:24px; }
.own-mat .card-number { width:30px; height:30px; font-size:26px; }
.own-score b { font-size:51px; }
.available::before { content:""; position:absolute; inset:18px -7px -7px; border:2px dashed #4a9c89; background:#b0d9c035; border-radius:12px; pointer-events:none; }
.hand-area { text-align:center; margin-top:16px; }
.hand-heading { display:flex; justify-content:center; align-items:center; gap:15px; margin-bottom:14px; }
.hand-heading p { font-size:12px; margin:0; font-weight:600; }
.hand-heading .eyebrow { border-right:1px solid var(--line); padding-right:15px; }
.hand { display:flex; justify-content:center; gap:24px; padding-top:3px; }
.hand .playing-card { --card-width:108px; border-radius:9px; }
.hand .card-number { width:35px; height:35px; font-size:29px; }
.hand .card-name { font-size:11px; bottom:7px; left:7px; right:7px; min-height:20px; }
.hand .playing-card.selected { transform:translateY(-7px) rotate(-2deg); box-shadow:0 6px 5px #174d3925,0 0 0 3px #fff9ed,0 0 0 6px var(--coral); }
.hand-card-wrap { position:relative; }
.card-category { display:block; font-size:9px; color:var(--ink-soft); padding-top:9px; }
.hand-help { display:block; margin:2px auto 0; min-height:34px !important; font-size:10px; }
.battle-footer { display:flex; justify-content:space-between; align-items:center; padding:2px 0 18px; }
.quiet-button { background:#fffaf0a8; border:1px solid #98b6a580; border-radius:9px; padding:0 14px; font-size:11px; }
.preview-note { font-size:9px; letter-spacing:.04em; color:#6e897c; }
.section-heading { text-align:center; margin:25px 0 35px; }
.section-heading .eyebrow { font-size:9px; }
.section-heading h1 { font-size:25px; font-weight:700; margin:12px 0; letter-spacing:.03em; }
.section-heading p,.section-note { font-size:12px; color:var(--ink-soft); line-height:1.9; }
.collection-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:30px 25px; max-width:1000px; margin:auto; }
.collection-item { display:flex; align-items:center; flex-direction:column; gap:12px; }
.collection-item .playing-card { --card-width:144px; border-radius:10px; }
.collection-item .card-number { width:40px; height:40px; font-size:34px; }
.collection-item .card-name { font-size:12px; min-height:24px; bottom:8px; left:8px; right:8px; }
.collection-item .card-name.long-name { font-size:10px; }
.collection-type { font-size:10px; color:var(--ink-soft); }
.section-note { text-align:center; margin:35px 0; font-size:11px; }
.effect-stage { max-width:700px; min-height:300px; background:var(--cream); border:1px solid var(--line); border-radius:25px; margin:0 auto 25px; display:flex; justify-content:center; align-items:center; gap:28px; padding:45px; position:relative; overflow:hidden; }
.effect-stage .playing-card { --card-width:120px; }
.effect-stage .card-number { width:34px; height:34px; font-size:29px; }
.effect-stage .card-name { font-size:12px; min-height:20px; }
.stage-label { font-size:10px; color:var(--ink-soft); writing-mode:vertical-rl; letter-spacing:.1em; }
.effect-path { font-size:24px; color:#91baa9; }
#effect-source,#effect-target { position:relative; }
.effect-buttons { display:flex; gap:9px; justify-content:center; flex-wrap:wrap; }
.effect-buttons button { border:1px solid #8caf9d; border-radius:9px; background:#fffaf0; font-size:12px; padding:8px 17px; }
.effect-caption { text-align:center; font-size:12px; color:var(--ink-soft); line-height:1.8; min-height:3em; margin:20px; }
.effect-badge { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) rotate(-5deg); background:#fffaf0f2; color:var(--coral); border:3px solid currentColor; font-size:24px; padding:5px 9px; border-radius:5px; font-weight:900; white-space:nowrap; z-index:5; box-shadow:0 3px 10px #19382b22; }
.effect-badge.shield { color:#418a77; }
.effect-badge.skip { font-size:16px; color:#80789b; }
.effect-badge.win { color:#ab8635; }
.confetti { width:7px; height:12px; position:absolute; top:50%; left:50%; pointer-events:none; z-index:6; }
.flying-card { position:fixed; z-index:30; transform-origin:top left; pointer-events:none; margin:0; transition:none; }
dialog { border:1px solid #8eaf9c; background:#fffaf0; color:var(--ink); border-radius:20px; padding:35px; box-shadow:0 25px 90px #143c3255; width:min(650px,calc(100% - 30px)); max-height:calc(100svh - 40px); overflow:auto; }
dialog::backdrop { background:#1e493d66; backdrop-filter:blur(4px); }
.dialog-close { position:absolute; right:10px; top:10px; width:44px; border:0; background:transparent; font-size:25px; z-index:5; }
#card-dialog-content { display:flex; gap:35px; align-items:center; }
.detail-art .playing-card { --card-width:180px; pointer-events:none; }
.detail-art .card-number { width:47px; height:47px; font-size:39px; }
.detail-art .card-name { font-size:15px; min-height:28px; bottom:10px; left:10px; right:10px; }
.detail-art .card-name.long-name { font-size:12px; }
.detail-text { flex:1; }
.detail-text h2 { font-size:25px; margin:10px 0 13px; }
.detail-text h3 { font-size:12px; margin-top:22px; }
.detail-text p { font-size:13px; line-height:1.9; }
.ability-pill { font-size:10px; border:1px solid #9bb6a2; padding:5px 9px; border-radius:6px; }
.muted { font-size:10px; color:var(--ink-soft); line-height:1.9; }
.settings-dialog { max-width:470px; }
.settings-dialog h2 { font-size:23px; margin:10px 0 25px; }
.setting-row { display:flex; align-items:center; justify-content:space-between; min-height:52px; border-bottom:1px solid #aec2b677; font-size:13px; }
.setting-row input { width:22px; height:22px; accent-color:var(--ink); }
.skin-option { margin:25px 0 15px; padding:16px 10px; display:flex; align-items:center; gap:11px; background:#e4eddf; border:1px solid #adc2b0; border-radius:12px; }
.skin-swatch { width:30px; height:38px; background:linear-gradient(135deg,#78b7a1 50%,#fff9e8 50%); border:1px solid #6b9682; border-radius:4px; }
.skin-option b { display:block; font-size:12px; }
.skin-option small { display:block; font-size:9px; margin-top:5px; }
.skin-check { margin-left:auto; font-size:10px; }
.toast { position:fixed; bottom:max(25px,env(safe-area-inset-bottom)); left:50%; transform:translate(-50%,15px); padding:13px 19px; color:var(--cream); background:#20564df2; border:1px solid #bcd1bc; border-radius:11px; z-index:100; font-size:12px; pointer-events:none; opacity:0; transition:opacity .15s,transform .15s; max-width:calc(100vw - 32px); width:max-content; text-align:center; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.reduce-motion *, .reduce-motion *::before { transition:none !important; scroll-behavior:auto !important; }
@media (min-width:1500px) { .app-header { padding-top:30px; } .view { padding-top:25px; } .opponent .playing-card { --card-width:91px; } .own-mat .playing-card { --card-width:98px; } .hand .playing-card { --card-width:120px; } .table-center { margin-top:24px; margin-bottom:25px; } }
@media (max-width:1000px) { .app-header { padding:18px 25px 13px; gap:16px; } main { padding:0 22px; } .opponent { padding:10px 12px; } .opponent .playing-card { --card-width:63px; } .opponent .field-pair { gap:10px; } .score b { font-size:33px; } .seat-heading { gap:6px; } .seat-heading h2 { font-size:18px; } .hand-count { font-size:8px; padding:3px; } .opponent .card-name { font-size:8px; } .opponent .card-name.long-name { font-size:6px; } .opponent .card-number { width:24px; height:24px; font-size:20px; } .collection-grid { gap:25px 15px; } .collection-item .playing-card { --card-width:118px; } }
@media (max-width:720px) {
  .app-header { padding:12px 16px 10px; gap:10px; flex-wrap:wrap; }
  .brand { font-size:18px; } .brand-mark { width:34px; height:39px; font-size:21px; } .brand small { font-size:7px; }
  .tabs { order:3; width:100%; justify-content:space-between; padding:3px; gap:4px; }
  .tab { font-size:11px; padding:0 10px; flex:1; min-height:39px !important; }
  .icon-button { min-width:40px; width:40px; min-height:40px !important; height:40px; font-size:20px; }
  main { padding:0 14px; max-width:540px; }
  .view { padding-top:10px; }
  .table-heading { gap:9px; margin:0 0 9px; }
  .round-label { font-size:8px; padding:5px 8px; }
  .round-label b { font-size:12px; }
  .turn-badge { padding:7px 10px; font-size:10px; }
  .table-heading .text-button { font-size:9px; padding:3px; }
  .opponents { display:flex; flex-direction:column; gap:7px; }
  .opponent { padding:4px 12px; display:grid; grid-template-columns:90px 1fr; align-items:center; gap:6px; border-radius:12px; }
  .seat-heading { display:flex; flex-wrap:wrap; border:0; padding:0; margin:0; align-content:center; gap:3px 6px; }
  .seat-heading h2 { font-size:18px; width:100%; line-height:1.1; }
  .seat-heading .win-dots { width:100%; line-height:1; }
  .win-dots small { font-size:8px; }
  .win-dots i { font-size:10px; }
  .hand-count { font-size:8px; line-height:1.2; margin:2px 0 0; padding:2px 5px; }
  .field-row { gap:12px; justify-content:space-between; }
  .opponent .field-pair { gap:11px; }
  .opponent .playing-card { --card-width:44px; border-radius:5px; box-shadow:0 2px 0 #174d3926,0 0 0 2px #fffcf1; }
  .opponent .place-label { font-size:8px; margin-bottom:3px; letter-spacing:0; }
  .opponent .card-number { left:2px; top:2px; width:17px; height:17px; font-size:14px; border-width:1px; }
  .opponent .card-name { font-size:5.6px; min-height:10px; bottom:3px; left:3px; right:3px; padding:1px 0; }
  .opponent .card-name.long-name { font-size:4.5px; }
  .opponent .card-decoration { font-size:8px; right:3px; top:5px; }
  .score { min-width:42px; } .score small { font-size:8px; } .score b { font-size:31px; }
  .table-center { min-height:55px; margin:6px auto; padding:0 15px; gap:10px; justify-content:center; }
  .deck-area { gap:16px; }
  .deck { width:35px; border-width:2px; } .deck .back-emblem { font-size:13px; }
  .deck-count { font-size:6px; padding:1px 3px; bottom:3px; } .deck-count b { font-size:9px; }
  .excluded { width:28px; border-width:2px; } .excluded .back-emblem { font-size:10px; }
  .excluded-wrap small { font-size:7px; margin-top:4px; }
  .table-caption { display:none; } .table-flower { position:absolute; right:35px; font-size:30px; }
  .own-mat { width:100%; padding:8px 13px 10px; gap:0; justify-content:space-between; border-radius:14px; }
  .own-identity .eyebrow { font-size:6px; letter-spacing:.08em; }
  .own-identity h2 { font-size:17px; margin:5px 0; }
  .own-mat .playing-card { --card-width:52px; }
  .own-mat .field-pair { gap:17px; }
  .own-mat .place-label { font-size:8px; margin-bottom:5px; }
  .own-mat .card-number { width:22px; height:22px; font-size:18px; left:3px; top:3px; }
  .own-mat .card-name { font-size:7px; min-height:12px; left:3px; right:3px; bottom:3px; }
  .own-mat .card-name.long-name { font-size:5px; }
  .own-score b { font-size:38px; }
  .available::before { inset:14px -5px -5px; border-radius:9px; }
  .hand-area { margin-top:12px; position:relative; }
  .hand-heading { gap:10px; margin-bottom:11px; } .hand-heading p { font-size:10px; }
  .hand-heading .eyebrow { font-size:6px; padding-right:10px; }
  .hand { gap:26px; } .hand .playing-card { --card-width:83px; border-radius:7px; }
  .hand .card-number { width:29px; height:29px; font-size:24px; }
  .hand .card-name { font-size:10px; min-height:18px; left:5px; right:5px; bottom:5px; }
  .card-category { padding-top:6px; font-size:8px; }
  .hand-help { position:absolute; right:0; bottom:20px; width:62px; font-size:8px; line-height:1.7; min-height:44px !important; margin:0; padding:4px; }
  .battle-footer { padding-top:0; padding-bottom:max(12px,env(safe-area-inset-bottom)); }
  .quiet-button { font-size:9px; padding:0 10px; min-height:36px !important; }
  .preview-note { font-size:7px; }
  .section-heading { margin:18px 0 27px; } .section-heading h1 { font-size:19px; } .section-heading p { font-size:10px; }
  .collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:25px 15px; }
  .collection-item .playing-card { --card-width:min(130px,34vw); }
  .section-note { font-size:10px; }
  .effect-stage { padding:25px 15px; gap:17px; min-height:240px; border-radius:15px; }
  .effect-stage .playing-card { --card-width:86px; } .stage-label { display:none; }
  .effect-stage .card-name { font-size:10px; }
  .effect-buttons { gap:7px; } .effect-buttons button { font-size:11px; padding:6px 12px; }
  .effect-caption { font-size:11px; margin:20px 6px; }
  dialog { padding:32px 22px; } #card-dialog-content { flex-direction:column; gap:24px; } .detail-art .playing-card { --card-width:145px; } .detail-text h2 { font-size:23px; } .detail-text p { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before { transition:none !important; scroll-behavior:auto !important; } }
@media (max-width:720px) and (max-height:800px) { .hand-area { margin-top:8px; } .hand .playing-card { --card-width:78px; } }
