﻿*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --bg1:#eef2f7;
    --bg2:#f8fafc;
    --text:#1b1d21;
    --muted:#5f6673;
    --line:rgba(255,255,255,.45);
    --glass:rgba(255,255,255,.55);
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --shadow-hover:0 18px 45px rgba(0,0,0,.13);
    --form-card-bg:rgba(255,255,255,.66);
    --form-row-bg:rgba(255,255,255,.48);
    --form-row-bg-hover:rgba(255,255,255,.72);
    --form-row-border:rgba(148,163,184,.22);

    --form-label:#1f2937;
    --form-help:#64748b;
    --form-control-bg:#f8fbff;
    --form-control-border:rgba(100,116,139,.24);
    --form-control-focus:#3b82f6;

    --form-primary:#2563eb;
    --form-primary-2:#60a5fa;
    --form-submit-shadow:rgba(37,99,235,.28);

    --form-radius:18px;
    --form-control-radius:12px;
}

/* ===== 基本 ===== */
body{
    background:linear-gradient(135deg,var(--bg1),var(--bg2));
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft JhengHei",sans-serif;
    color:var(--text);
    min-width:960px;
}

/* ===== 主容器 ===== */
.site{
    width:960px;
    margin:20px auto;
    position:relative;
    z-index:1;
}

/* =========================
   背景光暈（動態）
========================= */
.bg-orb{
    position:fixed;
    border-radius:50%;
    filter:blur(70px);
    opacity:.5;
    z-index:0;
    animation:float 14s ease-in-out infinite;
}

.orb-1{
    width:280px;height:280px;
    left:5%;top:10%;
    background:#93c5fd;
}

.orb-2{
    width:300px;height:300px;
    right:8%;top:20%;
    background:#ffffff;
    animation-delay:-4s;
}

.orb-3{
    width:260px;height:260px;
    left:15%;bottom:10%;
    background:#c4b5fd;
    animation-delay:-8s;
}

@keyframes float{
    0%{transform:translateY(0)}
    50%{transform:translateY(-20px)}
    100%{transform:translateY(0)}
}

/* =========================
   共用玻璃效果
========================= */
.glass{
    background:var(--glass);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border:1px solid var(--line);
    border-radius:18px;

    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255,255,255,.7);
}

/* =========================
   Header / Footer Hero
========================= */


.hero{
    position:relative;
    height:140px;
    overflow:hidden;

    background:
        linear-gradient(
            to bottom,
            rgba(225,225,225,0.35),
            rgba(225,225,225,0.1) 40%,
            rgba(225,225,225,0.3)
        ),
        url("header-bg.jpg") center/cover no-repeat;
}

/* Footer 用不同背景 */
.footer.hero{
    height:140px;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.4),
            rgba(255,255,255,0.15),
            rgba(255,255,255,0.35)
        ),
        url("footer-bg.jpg") center/cover no-repeat;
}

.footer{
    position:relative;
}

.footer-box{
    position:absolute;

    right:-200px;
    bottom:40px;
    transform:translateX(-50%);

    padding:10px 20px;

    background:rgba(200,200,200,0.3); /* 灰色半透明 */

    border-radius:12px;

    backdrop-filter:blur(6px);

    box-shadow:
        0 4px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.6);

    text-align:center;

    color:#111; /* ⭐ 改成黑色字 */

    font-size:14px;
    line-height:1.6;
}

/* Hero 內容區 */
.hero-content{
    position:relative;
    z-index:2;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:0 28px;
    color:#fff;
}

/* Logo */
.logo{
    font-size:34px;
    font-weight:700;
    text-shadow:0 3px 10px rgba(0,0,0,.6);
}

/* 副標 */
.hero-sub{
    margin-top:8px;
    font-size:14px;
    color:rgba(255,255,255,.85);
}

/* =========================
   導覽列（獨立）
========================= */
.nav-bar{
    margin:16px 0 26px;
    padding:12px 18px;

    display:flex;
    justify-content:center;

    background:rgba(255,255,255,0.55);
    backdrop-filter:blur(16px);

    border-radius:16px;
    border:1px solid rgba(255,255,255,0.4);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.nav{
    display:flex;
    gap:28px;
}

/* 選單項 */
.nav a{
    position:relative;
    font-size:14px;
    color:#555;
    transition:.25s;
    text-decoration:none;
}


    
/* hover底線 */
.nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-5px;
    width:0%;
    height:2px;
    background:#111;
    transition:.25s;
}

.nav a:hover{
    color:#000;
}

.nav a:hover::after{
    width:100%;
}

/* active */
.nav a.active{
    color:#000;
}

.nav a.active::after{
    width:100%;
}

/* =========================
   次級導覽列
========================= */
.sub-actions-wrap{
    margin:4px 0 20px;
    padding:0 6px;
}

.sub-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}

/* 單個子選單按鈕 */
.sub-actions a{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-width:98px;
    padding:10px 18px;

    border-radius:14px;
    text-decoration:none;

    font-size:13px;
    font-weight:600;
    color:#5b6472;

    background:rgba(255,255,255,.40);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,.40);

    box-shadow:
        0 6px 14px rgba(0,0,0,.04),
        inset 0 1px 0 rgba(255,255,255,.62);

    transition:
        color .22s ease,
        transform .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.sub-actions a:hover{
    color:#111827;
    background:rgba(255,255,255,.58);
    transform:translateY(-1px);
    border-color:rgba(255,255,255,.58);
    box-shadow:
        0 10px 18px rgba(0,0,0,.06),
        inset 0 1px 0 rgba(255,255,255,.75);
}

/* 當前子頁 */
.sub-actions a.active{
    color:#111827;
    background:rgba(255,255,255,.78);
    border-color:rgba(255,255,255,.62);
    box-shadow:
        0 10px 22px rgba(0,0,0,.07),
        inset 0 1px 0 rgba(255,255,255,.82);
}

/* active 底部短線，保留一點頁籤感 */
.sub-actions a.active::after{
    content:"";
    position:absolute;
    left:16px;
    right:16px;
    bottom:6px;
    height:2px;
    border-radius:999px;
    background:linear-gradient(90deg, rgba(17,24,39,.9), rgba(107,114,128,.45));
}

/* =========================
   主內容
========================= */
.main{
    display:flex;
    flex-direction:column;
    gap:24px;
}

/* =========================
   Glass Card (fieldset)
========================= */
.glass-card{
    position:relative;
    overflow:hidden;

    padding:30px 32px;
    border:none;
    border-radius:22px;

    background:rgba(255,255,255,0.6);
    backdrop-filter:blur(14px);

    box-shadow:
        var(--shadow),
        inset 0 1px 0 rgba(255,255,255,.75);

    transition:.35s;
}

/* 表面光層 */
.glass-card::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.5),
            rgba(255,255,255,0.1)
        );
     pointer-events:none;
}

/* 掃光動畫 */
.glass-card::after{
    content:"";
    position:absolute;
    top:-20%;
    left:-40%;
    width:40%;
    height:140%;
    transform:rotate(20deg);
    background:linear-gradient(
        to right,
        rgba(255,255,255,0),
        rgba(255,255,255,0.5),
        rgba(255,255,255,0)
    );
    opacity:0;
}

.glass-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-hover);
}

.glass-card:hover::after{
    opacity:1;
    animation:shine 1.2s ease;
}

@keyframes shine{
    from{left:-40%}
    to{left:120%}
}

/* 標題 */
legend{
    font-size:15px;
    font-weight:600;
    color:#555;
}

/* 內容 */
.glass-card p{
    margin-top:10px;
    line-height:1.5;
    font-weight:600;
    color:#1f2937; /* 比原本更深 */
}

.glass-card > *{
    position:relative;
    z-index:1;
}

.glass-card a{
    color:#2563eb;
    text-decoration:none;
    position:relative;
    z-index:2; /* 確保在最上層 */
}

.glass-card a:hover{
    color:#1d4ed8;
}

/* =========================
   Footer
========================= */
.footer{
    margin-top:30px;
    padding:20px;
    text-align:center;
    font-size:13px;
    color:#fff;
}

.footer-content{
    justify-content:center;
    align-items:center;
}

.footer a{
    color:#2563eb;
    text-decoration:none;
    position:relative;
    z-index:2; /* 確保在最上層 */
}

.footer a:hover{
    color:#1d4ed8;
}

/* =========================
   進場動畫
========================= */
.reveal{
    opacity:0;
    transform:translateY(15px);
    animation:fadeUp .8s forwards;
}

.delay-1{animation-delay:.1s;}
.delay-2{animation-delay:.2s;}
.delay-3{animation-delay:.3s;}
.delay-4{animation-delay:.4s;}

@keyframes fadeUp{
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* =========================
   表單 UI（Apple Pro風）
========================= */

.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:18px;
}

.form-group label{
    font-size:13px;
    color:#666;
    margin-bottom:6px;
}

/* 共用輸入 */
input,
textarea,
select{
    font-family:inherit;
    font-size:14px;

    padding:10px 12px;

    border-radius:12px;
    border:1px solid rgba(0,0,0,0.1);

    background:rgba(255,255,255,0.6);
    backdrop-filter:blur(10px);

    transition:all .2s ease;

    box-shadow:
        inset 0 1px 2px rgba(0,0,0,0.05);
}

/* focus */
input:focus,
textarea:focus,
select:focus{
    outline:none;
    border-color:#4a90e2;

    box-shadow:
        0 0 0 3px rgba(74,144,226,0.15),
        inset 0 1px 2px rgba(0,0,0,0.05);
}

/* textarea */
input[type="text"],
input[type="password"],
select,
textarea {
  
  padding: 10px 12px;
  border: 1px solid rgba(112, 84, 48, 0.18) !important;
  border-radius: 12px;
  background: #F0F8FF !important;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(64, 44, 22, 0.04);
}


textarea{
    min-height:100px;
    resize:vertical;
}

/* select */
select{
    cursor:pointer;
}

/* checkbox / radio */
input[type="checkbox"],
input[type="radio"]{
    width:16px;
    height:16px;
    accent-color:#4a90e2;
    cursor:pointer;
}

/* checkbox group */
.checkbox-group,
.radio-group{
    display:flex;
    gap:16px;
    align-items:center;
}

/* 按鈕 */

input[type="submit"],
input[type="button"],
button{
    border:none;
    padding:10px 18px;
    border-radius:12px;

    font-size:14px;
    font-weight:600;

    cursor:pointer;

    background:linear-gradient(135deg,#4a90e2,#6fc3ff);
    color:#fff;

    box-shadow:
        0 6px 14px rgba(74,144,226,0.3);

    transition:all .2s ease;
}

/* hover */
button:hover{
    transform:translateY(-1px);
    box-shadow:
        0 10px 20px rgba(74,144,226,0.4);
}

/* active */
button:active{
    transform:scale(.96);
}

/* 次要按鈕 */
.button-secondary{
    background:#e5e7eb;
    color:#333;
    box-shadow:none;
}

.button-secondary:hover{
    background:#dcdfe4;
}

/* disabled */
input:disabled,
textarea:disabled,
select:disabled{
    opacity:.6;
    cursor:not-allowed;
}

/* 表單區塊 */
.form-card{
    margin-top:10px;
}

/* =========================
   表格 UI（Apple / Notion風）
========================= */

.table-wrap{
    margin-top:10px;
    overflow-x:auto;
}

/* 表格本體 */
table{
    width:auto;
    margin:0 auto;

    border-collapse:separate;
    border-spacing:0;

    font-size:14px;
    font-weight:600;
    color:#1f2937;

    background:rgba(255,255,255,0.6);
    backdrop-filter:blur(8px);

    border-radius:14px;
    overflow:hidden;

    box-shadow:
        0 6px 18px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

/* 表頭 */
thead{
    background:rgba(243,244,246,0.9);
}

thead th{
    color:#374151;
    font-weight:700;
    border-bottom:1px solid rgba(0,0,0,0.12);
}
thead th + th{
    border-left:1px solid rgba(0,0,0,0.05);
}

/* 內容 */
tbody td{
    padding:4px 8px;
    border-bottom:1px solid rgba(0,0,0,0.05);
}

/* 最後一列不要底線 */
tbody tr:last-child td{
    border-bottom:none;
}

/* hover 效果 */
tbody tr:hover{
    background:rgba(255,255,255,0.75);
}

/* zebra（可讀性更好） */
tbody tr:nth-child(even){
    background:rgba(255,255,255,0.45);
}

/* 表格內連結 */
table a{
    color:#2563eb;
    text-decoration:none;
}

table a:hover{
    text-decoration:underline;
}

/* 小尺寸欄位 */
.table-sm td,
.table-sm th{
    padding:8px 10px;
}

.table-left{
    margin-left:0;
    margin-right:auto;
}

.notice-box{
    margin-top:10px;
}

/* 預設只顯示5行 */
.notice-content{
    line-height:1.8;
    overflow:hidden;

    display:-webkit-box;
    -webkit-line-clamp:5;        /* ⭐ 5行 */
    -webkit-box-orient:vertical;

    transition:all .3s ease;
}

/* 展開狀態 */
.notice-content.expanded{
    -webkit-line-clamp:unset;
}

/* 按鈕 */
.notice-toggle{
    margin-top:10px;

    background:none;
    border:none;
    cursor:pointer;

    color:#2563eb;
    font-size:13px;
    font-weight:600;
}

.notice-toggle:hover{
    text-decoration:underline;
}

.role-box {
  width: auto;
  margin: 1px 0px 2px;

  border-collapse: separate;
  border-spacing: 0;

  border-radius: 10px;
  overflow: hidden;

  background: rgba(255,250,240,1);
  border: 1px solid rgba(0,0,0,0.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 2px 8px rgba(0,0,0,0.10);
  border-color:rgba(255,255,255,.48);
   box-shadow:
        inset 0 1px 0 rgba(255,255,255,.72),
        0 5px 18px rgba(15,23,42,.10);   
}

.role-box td {
  padding: 0px 0px !important;
}

/* 職業圖片（整行） */
.role-img-wrap {
  display: block;
  text-align: center;

  margin-bottom: 4px;
}

.role-img-wrap img {
  display: block;
  max-width: 100%;
  height: auto;

  border-radius: 10px;
}

/* 職業結果 */
.role-result-wrap {
  display: flex;
  justify-content: left;
  margin-left: 0px;
}

/* 只輕微美化內部 table（不破壞原本） */
.role-result-wrap table {
  border-collapse: separate;
  border-spacing: 0;

  border-radius: 8px;
  overflow: hidden;


  background: transparent;

  /* 外框：深色 + 內亮邊 */
  border: 1px solid rgba(0,0,0,0.55);

  border-color:rgba(15,23,42,.38);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.36),
        0 2px 8px rgba(15,23,42,.10);
}

/* td 微調 */
.role-result-wrap td {
  padding: 1px 3px !important;
  border: 0 !important;
  vertical-align: middle;
}

/* 分隔線（雙色） */
.role-result-wrap td + td {
  border-left: 1px solid rgba(0,0,0,0.45);
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.25);
}
/* =========================================================
   規則頁專用排版
   只作用在 <fieldset class="glass-card rule-page">
   不影響其他共用頁面
========================================================= */

.rule-page{
    padding:34px 38px 40px;
    line-height:1.75;
    color:#1f2937;
}


/* 第一段注意事項標題 */
.rule-page > strong:first-of-type{
    display:block;
    margin:4px 0 10px;
    padding:10px 14px;

    border-radius:14px;
    background:linear-gradient(135deg, rgba(255,255,255,.75), rgba(248,250,252,.45));
    border:1px solid rgba(255,255,255,.65);

    color:#991b1b;
    font-size:16px;
    font-weight:900;
}

/* 舊式 <font color="red"> 警告文字美化 */
.rule-page > font[color="red"]{
    display:block;
    margin:0 0 22px;
    padding:14px 16px;

    border-radius:16px;
    background:rgba(254,242,242,.88);
    border:1px solid rgba(248,113,113,.28);
    border-left:5px solid rgba(220,38,38,.72);

    color:#991b1b !important;
    font-weight:700;
    line-height:1.75;

    box-shadow:0 8px 22px rgba(127,29,29,.06);
}

/* 一般段落 */
.rule-page p{
    margin:12px 0 18px;
    padding:16px 18px;

    border-radius:18px;
    background:rgba(255,255,255,.50);
    border:1px solid rgba(255,255,255,.58);

    color:#1f2937;
    line-height:1.82;
    font-size:14px;
    font-weight:600;

    box-shadow:
        0 5px 16px rgba(15,23,42,.035),
        inset 0 1px 0 rgba(255,255,255,.75);
}

/* 減少舊 br 造成的空白太鬆 */
.rule-page > br{
    display:none;
}

/* 區塊大標題：處理原本 bgcolor="#aaeeaa" 的小表格 */
.rule-page > table[border="0"][style*="margin:0"]{
    display:block;
    width:100%;
    margin:26px 0 14px !important;

    background:transparent;
    box-shadow:none;
    border-radius:0;
    overflow:visible;
}

.rule-page > table[border="0"][style*="margin:0"] tbody,
.rule-page > table[border="0"][style*="margin:0"] tr,
.rule-page > table[border="0"][style*="margin:0"] td{
    display:block;
    width:100%;
}

.rule-page > table[border="0"][style*="margin:0"] td{
    padding:0 !important;
    background:transparent !important;
    border:none !important;
}

.rule-page > table[border="0"][style*="margin:0"] strong{
    display:flex;
    align-items:center;
    gap:10px;

    padding:11px 16px;
    border-radius:16px;

    background:linear-gradient(135deg, rgba(209,250,229,.92), rgba(240,253,244,.62));
    border:1px solid rgba(16,185,129,.20);

    color:#064e3b;
    font-size:17px !important;
    font-weight:900;
    letter-spacing:.03em;

    box-shadow:
        0 8px 20px rgba(6,95,70,.07),
        inset 0 1px 0 rgba(255,255,255,.82);
}

.rule-page > table[border="0"][style*="margin:0"] strong::before{
    content:"";
    width:8px;
    height:22px;
    border-radius:999px;
    background:linear-gradient(180deg, #10b981, #047857);
}

/* 主要資料表：只處理 fieldset 第一層表格，不碰 role-box 內層小表格 */
.rule-page > table.table-left,
.rule-page > table[align="left"]{
    width:100%;
    margin:14px 0 24px !important;

    border-radius:18px;
    overflow:hidden;

    background:rgba(255,255,255,.62);
    border:1px solid rgba(255,255,255,.62);

    box-shadow:
        0 10px 28px rgba(15,23,42,.07),
        inset 0 1px 0 rgba(255,255,255,.76);
}

/* 表頭 */
.rule-page > table.table-left thead,
.rule-page > table[align="left"] thead{
    background:linear-gradient(180deg, rgba(249,250,251,.98), rgba(229,231,235,.76));
}

.rule-page > table.table-left th,
.rule-page > table[align="left"] th{
    padding:10px 12px;
    color:#111827;
    font-size:13px;
    font-weight:900;
    letter-spacing:.04em;
    white-space:nowrap;

    border-bottom:1px solid rgba(15,23,42,.12);
}

/* 表格內容 */
.rule-page > table.table-left td,
.rule-page > table[align="left"] td{
    padding:8px 12px;
    

    font-size:14px;
    line-height:1.65;
    border-bottom:1px solid rgba(15,23,42,.055);
}

/* 表格最後一列 */
.rule-page > table.table-left tr:last-child td,
.rule-page > table[align="left"] tr:last-child td{
    border-bottom:none;
}

/* 表格 hover 較柔和 */
.rule-page > table.table-left tbody tr:hover,
.rule-page > table[align="left"] tbody tr:hover{
    background:rgba(255,255,255,.78);
}

/* 角色介紹表：第一欄做成角色標籤感 */
.rule-page > table.table-left td:first-child,
.rule-page > table[align="left"] td:first-child{
    font-weight:900;
    white-space:nowrap;
}

/* 角色介紹表第一欄寬度 */
.rule-page > table.table-left th:first-child,
.rule-page > table.table-left td:first-child{
    width:82px;
    text-align:center;
}

/* 人口分配表：數字更整齊 */
.rule-page > table.table-left td[align="right"]{
    text-align:center;
    font-variant-numeric:tabular-nums;
}

/* 讓長表格在固定 960 寬下不爆版 */
.rule-page > table.table-left{
    max-width:100%;
}

/* Play 畫面說明的角色擔當表，不要浮動造成後面文字跑右邊 */
.rule-page > table[align="left"]{
    float:none !important;
    clear:both;
}


/* 圖片欄位垂直置中 */
.rule-page img{
    vertical-align:middle;
}

/* 舊式 inline 寬度表格避免被撐爆 */
.rule-page table{
    max-width:100%;
}

/* 讓段落與表格之間的距離統一 */
.rule-page p + table,
.rule-page table + p{
    margin-top:14px;
}

/* 最後一個元素不要多餘底部距離 */
.rule-page > *:last-child{
    margin-bottom:0 !important;
}
.rule-page .role-result-wrap{
    display:block;
    margin:1px 0 0px;
    padding:0;
}

/* 文字輸入 / 下拉 / textarea */
.create-room-form input[type="text"],
.create-room-form input[type="password"],
.create-room-form select,
.create-room-form textarea{
    min-height:28px;

    padding:4px 8px !important;
    border:1px solid var(--form-control-border) !important;
    border-radius:var(--form-control-radius) !important;

    background:
        linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,251,255,.92)) !important;

    color:#111827;
    font-size:13px;
    font-weight:600;

    box-shadow:
        inset 0 1px 2px rgba(15,23,42,.045),
        0 1px 0 rgba(255,255,255,.75);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

/* 輸入框 focus */
.create-room-form input[type="text"]:focus,
.create-room-form input[type="password"]:focus,
.create-room-form select:focus,
.create-room-form textarea:focus{
    outline:none;
    border-color:rgba(37,99,235,.62) !important;

    background:#fff !important;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.14),
        inset 0 1px 2px rgba(15,23,42,.05);
}

/* 長欄位寬度整理 */
.create-room-form input[name="room_name"]{
    width:420px;
    max-width:100%;
}

.create-room-form input[name="room_comment"]{
    width:520px;
    max-width:100%;
}

.create-room-form input[name="game_option_manager_trip"]{
    width:260px;
    max-width:100%;
}

/* 小數字欄位 */
.create-room-form input[name="game_option_real_time_day"],
.create-room-form input[name="game_option_real_time_night"],
.create-room-form input[name="game_option_trip_countsum"]{
    width:54px;
    min-height:28px;
    padding:5px 7px !important;
    text-align:center;
    font-variant-numeric:tabular-nums;
}

/* select 統一大小 */
.create-room-form select{
    min-width:130px;
    cursor:pointer;
}

/* textarea */
.create-room-form textarea{
    min-height:86px;
    resize:vertical;
    line-height:1.55;
}

/* checkbox：更清楚，但仍保留原生可用性 */
.create-room-form input[type="checkbox"]{
    width:17px;
    height:17px;
    margin:0 6px 0 0;

    accent-color:var(--form-primary);
    vertical-align:-3px;
    cursor:pointer;
}

/* checkbox 後方說明距離 */
.create-room-form input[type="checkbox"] + small{
    margin-left:2px;
}

/* 巢狀 table，例如替身君遺言那塊，不要吃全站 table 外觀 */
.create-room-form table table{
    width:auto !important;
    margin:0 !important;

    background:transparent !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;

    border-radius:0 !important;
    box-shadow:none !important;
    overflow:visible !important;
}

/* 巢狀 table 的 td 不要被全站 padding 撐大 */
.create-room-form table table td{
    padding:4px 6px !important;
    background:transparent !important;
    border:none !important;
}

/* 替身君遺言區塊，可以在外層 table 加 class="dummy-lw-box" */
.dummy-lw-box{
    padding:10px 12px;
    border-radius:16px;

    background:rgba(239,246,255,.72) !important;
    border:1px dashed rgba(59,130,246,.24);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.72);
}

/* 分區標題：職業追加與調整 */
.form-section-title{
    display:flex;
    align-items:center;
    gap:10px;

    margin:22px 0 10px;
    padding:10px 14px;

    border-radius:16px;
    background:
        linear-gradient(135deg, rgba(219,234,254,.9), rgba(255,255,255,.58));
    border:1px solid rgba(59,130,246,.18);

    color:#1e3a8a;
    font-size:15px;
    font-weight:900;
    letter-spacing:.04em;

    box-shadow:
        0 8px 20px rgba(37,99,235,.07),
        inset 0 1px 0 rgba(255,255,255,.8);
}

.form-section-title::before{
    content:"";
    width:8px;
    height:22px;
    border-radius:999px;
    background:linear-gradient(180deg, var(--form-primary-2), var(--form-primary));
}

/* 送出列 */
.create-room-table .form-submit-row > td{
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    padding-top:18px !important;
}

/* 送出按鈕 */
.create-room-form input[type="submit"]{
    min-width:128px;
    padding:11px 24px !important;

    border:0 !important;
    border-radius:999px !important;

    background:
        linear-gradient(135deg, var(--form-primary), var(--form-primary-2)) !important;

    color:#fff;
    font-size:15px;
    font-weight:900;
    letter-spacing:.08em;

    box-shadow:
        0 10px 22px var(--form-submit-shadow),
        inset 0 1px 0 rgba(255,255,255,.35);

    cursor:pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.create-room-form input[type="submit"]:hover{
    transform:translateY(-1px);
    filter:saturate(1.08);
    box-shadow:
        0 14px 28px rgba(37,99,235,.34),
        inset 0 1px 0 rgba(255,255,255,.42);
}

.create-room-form input[type="submit"]:active{
    transform:translateY(0) scale(.98);
}

/* 避免全站 tbody zebra 影響表單 */
.create-room-form tbody tr:nth-child(even),
.create-room-form tbody tr:hover{
    background:transparent;
}

/* 表單內 br 稍微收斂 */
.create-room-form br{
    line-height:1.25;
}