/* PokerAmp 共享工具类与无障碍样式（#352 skip-link / #354 内联 style 迁移）。
   各页面 <link> 引用；CSS 变量由各页面 :root 提供，此处给具体值兜底。 */

/* ── #352 无障碍：跳到主内容 ── */
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:#e8c268;color:#0a1428;padding:10px 18px;
  border-radius:0 0 10px 10px;font-weight:700;font-size:15px;
}
.skip-link:focus{left:12px;outline:2px solid #fff;outline-offset:2px}

/* ── 通用间距 / 尺寸工具类 ── */
.m0{margin:0}
.mt0{margin-top:0}
.mb0{margin-bottom:0}
.mt14{margin-top:14px}
.ml-auto{margin-left:auto}
.fs18{font-size:18px}
.h28{height:28px}

/* ── 颜色 / 文字工具类 ── */
.text-gold{color:var(--gold,#e8c268)}
.gold-strong{color:var(--gold,#e8c268);font-weight:700}
.muted-sub{color:var(--muted,#9fb0cc);margin-bottom:6px}
.center-mt24{text-align:center;margin-top:24px}
.foot-lang{margin-top:20px;font-size:13px;color:var(--muted,#9fb0cc)}
.foot-deep{margin-top:10px;font-size:13px;line-height:1.8;color:var(--muted,#9fb0cc)}
.foot-deep a{color:var(--gold,#e8c268);text-decoration:underline}

/* ── 弹性布局辅助 ── */
.flex-dis{flex:1;max-width:680px}
.flex-dis-700{flex:1;max-width:700px}

/* ── 语义组件：顶部工具条（fairness 等） ── */
.top-bar{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:18px 0 6px;font-size:13px;color:var(--muted,#9fb0cc);flex-wrap:wrap;
}
/* 语言切换/返回链接：默认链接蓝在深色背景上对比度不足，统一用金色（对比度 11:1）。 */
.top-bar a{color:var(--gold,#e8c268)}

/* ── 语义组件：行动召唤盒（fairness 等） ── */
.cta-box{
  text-align:center;margin:28px 0 8px;border:1px solid var(--line,rgba(232,194,104,.18));
  border-radius:16px;padding:28px 20px;background:rgba(232,194,104,.06);
}
.cta-box-title{font-size:17px;font-weight:700;color:#fff;margin-bottom:14px}
.cta-btn{
  display:inline-block;background:linear-gradient(180deg,#27a068,#1a7a4c);
  color:#fff;padding:12px 26px;border-radius:12px;font-weight:700;
}

/* ── 语义组件：相关阅读盒（guide-gto） ── */
.related-box{
  margin-top:30px;padding:18px 20px;border:1px solid var(--line,rgba(232,194,104,.18));
  border-radius:14px;
}
.related-title{color:var(--gold,#e8c268)}

/* ── 主题皮肤色板（table/portrait 共用，按 data-theme 选择，无需内联） ── */
.swatch[data-theme="casino"]{background:linear-gradient(150deg,#207a4e,#072a19);color:#eef1f4}
.swatch[data-theme="ocean"]{background:linear-gradient(150deg,#3d74b8,#0e2440);color:#eef1f4}
.swatch[data-theme="inferno"]{background:linear-gradient(150deg,#a8453c,#33110d);color:#eef1f4}
.swatch[data-theme="noir"]{background:linear-gradient(150deg,#4a1622,#151013);color:#e8d5a3}
.swatch[data-theme="flux"]{background:linear-gradient(150deg,#1e2845,#0a0e18);color:#38bdf8}
.swatch[data-theme="lumen"]{background:linear-gradient(150deg,#ffffff,#d8e0d6);color:#1e2128}
.swatch[data-theme="pokerist"]{background:linear-gradient(150deg,#14688e,#050e2f);color:#f0eef1}

/* ── 装饰光斑（table，按位置 nth-of-type，无需内联） ── */
.bokeh:nth-of-type(1){left:6%;top:12%;width:14px;height:14px;background:rgba(255,190,110,.5)}
.bokeh:nth-of-type(2){left:86%;top:10%;width:18px;height:18px;background:rgba(255,170,90,.45)}
.bokeh:nth-of-type(3){left:14%;top:30%;width:10px;height:10px;background:rgba(255,210,150,.4)}
.bokeh:nth-of-type(4){left:80%;top:34%;width:12px;height:12px;background:rgba(255,180,100,.4)}
.bokeh:nth-of-type(5){left:4%;top:52%;width:9px;height:9px;background:rgba(255,200,130,.32)}
.bokeh:nth-of-type(6){left:90%;top:54%;width:10px;height:10px;background:rgba(255,200,130,.3)}

/* ── 复盘图标色调（table，按 data-tone 选择） ── */
.di-ic[data-tone="green"]{background:rgba(63,157,120,.16);color:var(--green,#27a068)}
.di-ic[data-tone="red"]{background:rgba(229,96,79,.16);color:#e5604f}
.di-ic[data-tone="gold"]{background:rgba(212,175,55,.16);color:var(--gold-1,#d4af37)}
.di-ic[data-tone="blue"]{background:rgba(56,189,248,.16);color:#38bdf8}
.di-ic[data-tone="purple"]{background:rgba(167,139,250,.16);color:#a78bfa}

/* code: 仓库脚本/证据文件路径标记，三语 landing 与 fairness 共用 */
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;font-size:.92em;padding:1px 5px;border-radius:5px;background:rgba(212,175,55,.10);border:1px solid rgba(212,175,55,.26);color:var(--gold-1,#d4af37);white-space:nowrap}

/* ── 微信内置浏览器适配（wechat-compat.js 打 html.wx 后才生效，其他环境零影响） ──
   1) 关掉 Android X5 的 text autosizing：<12px 文字被放大后牌桌排版会错位；
   2) 关掉长按牌面的「保存图片/复制」菜单呼叫（callout），游戏中极易误触；
   3) 触控目标统一 touch-action:manipulation，去掉旧内核的双击缩放等待；
   4) 牌桌与操作区禁止选中（拖拽下注滑杆时不会选中文字），输入框保持可选中。 */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.wx .stage,html.wx .tablewrap,html.wx .felt{-webkit-touch-callout:none}
html.wx button,html.wx .btn,html.wx [role="button"]{touch-action:manipulation}
html.wx .tablewrap,html.wx .felt,html.wx .controls{user-select:none;-webkit-user-select:none}
html.wx input,html.wx textarea{user-select:text;-webkit-user-select:text}
html.wx body{overscroll-behavior-y:contain}
